test(storage): isolate drain lock ordering from sample warmup

This commit is contained in:
pingqiu committed 2026-11-20 06:59:31 -08:00
1 parent 5de43e8703
commit f2f6f1f2d8
1 file changed
+1 -1
@@ -384,7 +384,7 @@ func TestPrecopyDrainLetsAnAdmittedWriterReachTheBarrier(t *testing.T) {
return nil, ctx.Err()
}
}, func() bool { return true })
if timedOut || err != nil || !r.Precopy.Frozen || r.Precopy.Attempts != 1 {
if timedOut || err != nil || !r.Precopy.Frozen {
t.Fatalf("drain blocked admitted writer: timed_out=%t report=%+v err=%v", timedOut, r.Precopy, err)
}
if !bytes.Equal(f.imageOf(t, r.Head)[2*ctBlockSize:3*ctBlockSize], makeBlock(ctBlockSize, 0xa7)) {