summaryrefslogtreecommitdiff
path: root/integrationtests/authkey_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-13 12:46:20 +0200
committerPaul Buetow <paul@buetow.org>2026-03-13 12:46:20 +0200
commit07d654f76e1002b6ac18a43aab3c64797dcd2a32 (patch)
treefe7774fe0f97a5f8d8b38970bf31354048a8afd0 /integrationtests/authkey_test.go
parent74ece728fe61fb74e020a87dde2c84f5f7e933ea (diff)
Harden integration server startup checks
Diffstat (limited to 'integrationtests/authkey_test.go')
-rw-r--r--integrationtests/authkey_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/integrationtests/authkey_test.go b/integrationtests/authkey_test.go
index 13f0069..15a10b4 100644
--- a/integrationtests/authkey_test.go
+++ b/integrationtests/authkey_test.go
@@ -284,7 +284,10 @@ func startAuthKeyServer(t *testing.T, cfgFile string) *authKeyServer {
}
}()
- time.Sleep(500 * time.Millisecond)
+ if err := waitForServerReady(ctx, "localhost", port); err != nil {
+ cancel()
+ t.Fatalf("Unable to start dserver: %v", err)
+ }
return &authKeyServer{
ctx: ctx,
cancel: cancel,