Skip to content

Commit 1e9e5c3

Browse files
committed
chore: Make waitAccessURL a helper
1 parent 8b84b09 commit 1e9e5c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cli/server_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,17 @@ func generateTLSCertificate(t testing.TB) (certPath, keyPath string) {
348348
}
349349

350350
func waitAccessURL(t *testing.T, cfg config.Root) *url.URL {
351+
t.Helper()
352+
351353
var err error
352354
var rawURL string
353355
require.Eventually(t, func() bool {
354356
rawURL, err = cfg.URL().Read()
355357
return err == nil && rawURL != ""
356-
}, testutil.WaitLong, testutil.IntervalFast)
358+
}, testutil.WaitLong, testutil.IntervalFast, "failed to get access URL")
357359

358360
accessURL, err := url.Parse(rawURL)
359-
require.NoError(t, err)
361+
require.NoError(t, err, "failed to parse access URL")
360362

361363
return accessURL
362364
}

0 commit comments

Comments
 (0)