We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4047b4d commit 49d3cb0Copy full SHA for 49d3cb0
cli/server_test.go
@@ -91,7 +91,11 @@ func TestServer(t *testing.T) {
91
go func() {
92
errC <- root.ExecuteContext(ctx)
93
}()
94
- _ = waitAccessURL(t, cfg)
+ //nolint:gocritic // Embedded postgres take a while to fire up.
95
+ require.Eventually(t, func() bool {
96
+ rawURL, err := cfg.URL().Read()
97
+ return err == nil && rawURL != ""
98
+ }, 3*time.Minute, testutil.IntervalFast, "failed to get access URL")
99
cancelFunc()
100
require.ErrorIs(t, <-errC, context.Canceled)
101
})
@@ -355,7 +359,7 @@ func waitAccessURL(t *testing.T, cfg config.Root) *url.URL {
355
359
require.Eventually(t, func() bool {
356
360
rawURL, err = cfg.URL().Read()
357
361
return err == nil && rawURL != ""
358
- }, testutil.WaitMedium, testutil.IntervalFast, "failed to get access URL")
362
+ }, testutil.WaitLong, testutil.IntervalFast, "failed to get access URL")
363
364
accessURL, err := url.Parse(rawURL)
365
require.NoError(t, err, "failed to parse access URL")
0 commit comments