diff --git a/stores/metadata_test.go b/stores/metadata_test.go index 0b785f6b6..16e104695 100644 --- a/stores/metadata_test.go +++ b/stores/metadata_test.go @@ -3584,8 +3584,8 @@ func TestDeleteHostSector(t *testing.T) { // Prune the sector from hk1. if n, err := ss.DeleteHostSector(context.Background(), hk1, root); err != nil { t.Fatal(err) - } else if n == 0 { - t.Fatal("no sectors were pruned") + } else if n != 2 { + t.Fatal("no sectors were pruned", n) } // Make sure 2 contractSector entries exist.