mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
test: use the closed gate readiness interface
This commit is contained in:
1 parent
5b8ddefeec
commit
08df12ff47
1 file changed
+1
-2
@@ -1,7 +1,6 @@
|
||||
package durable
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"testing"
|
||||
|
||||
@@ -18,7 +17,7 @@ func TestPlainDetachStopAcceptsClosedIdleBackend(t *testing.T) {
|
||||
if err := b.stopPlainDetachIfIdle(); err != nil {
|
||||
t.Fatalf("closed idle backend cannot seal: %v", err)
|
||||
}
|
||||
if err := b.readyCheck(context.Background()); !errors.Is(err, frontend.ErrBackendClosed) {
|
||||
if err := b.readyCheck(); !errors.Is(err, frontend.ErrBackendClosed) {
|
||||
t.Fatalf("offline admission reopened frontend: %v", err)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user