diff --git a/seaweed-block/core/frontend/chunkstore/gc_test.go b/seaweed-block/core/frontend/chunkstore/gc_test.go index c871c42fc2..6ba7eca47b 100644 --- a/seaweed-block/core/frontend/chunkstore/gc_test.go +++ b/seaweed-block/core/frontend/chunkstore/gc_test.go @@ -340,7 +340,7 @@ func TestGC_CopyIntentSurvivesTakeover(t *testing.T) { } func TestSWFS_DeleteBlobStatusesAndExactPath(t *testing.T) { - for _, status := range []int{200, 204, 404, 401, 500} { + for _, status := range []int{200, 202, 204, 404, 401, 500} { t.Run(http.StatusText(status), func(t *testing.T) { calls := 0 server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { @@ -353,7 +353,7 @@ func TestSWFS_DeleteBlobStatusesAndExactPath(t *testing.T) { defer server.Close() c := &SWFS{http: server.Client(), vidCache: map[string][]string{"7": {strings.TrimPrefix(server.URL, "http://")}}} e := c.DeleteBlob(context.Background(), "7,01abcdef") - if (e == nil) != (status == 200 || status == 204 || status == 404) { + if (e == nil) != (status == 200 || status == 202 || status == 204 || status == 404) { t.Fatalf("status %d: %v", status, e) } if calls != 1 {