diff --git a/seaweed-block/core/storage/chunk_cut_cow_spillcap_test.go b/seaweed-block/core/storage/chunk_cut_cow_spillcap_test.go index c0edd154c8..fb3cb8a4d6 100644 --- a/seaweed-block/core/storage/chunk_cut_cow_spillcap_test.go +++ b/seaweed-block/core/storage/chunk_cut_cow_spillcap_test.go @@ -72,6 +72,7 @@ func TestCutCOWV3_RemoteUploadStartsAfterWindowCloses(t *testing.T) { s, l, f, gate := cowFixture(t) entered, release := holdPuts(t, f) done, errs := cowStartCut(t, l, gate) + t.Cleanup(release) // unblock remote I/O before cowStartCut's failure join gate.unblock() waitKey(t, entered, "upload after local copy") if l.cowActive.Load() != nil {