test: use the closed gate readiness interface

This commit is contained in:
pingqiu committed 2026-11-21 08:30:01 -08:00
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)
}
}