mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
test(storage): isolate drain lock ordering from sample warmup
This commit is contained in:
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)) {
|
||||
|
||||
Reference in new issue
Block a user