From 07d654f76e1002b6ac18a43aab3c64797dcd2a32 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 13 Mar 2026 12:46:20 +0200 Subject: Harden integration server startup checks --- integrationtests/authkey_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'integrationtests/authkey_test.go') 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, -- cgit v1.2.3