Skip to content

Commit 49d3cb0

Browse files
committed
chore: Revert embedded postgres timeout change
1 parent 4047b4d commit 49d3cb0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cli/server_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ func TestServer(t *testing.T) {
9191
go func() {
9292
errC <- root.ExecuteContext(ctx)
9393
}()
94-
_ = waitAccessURL(t, cfg)
94+
//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")
9599
cancelFunc()
96100
require.ErrorIs(t, <-errC, context.Canceled)
97101
})
@@ -355,7 +359,7 @@ func waitAccessURL(t *testing.T, cfg config.Root) *url.URL {
355359
require.Eventually(t, func() bool {
356360
rawURL, err = cfg.URL().Read()
357361
return err == nil && rawURL != ""
358-
}, testutil.WaitMedium, testutil.IntervalFast, "failed to get access URL")
362+
}, testutil.WaitLong, testutil.IntervalFast, "failed to get access URL")
359363

360364
accessURL, err := url.Parse(rawURL)
361365
require.NoError(t, err, "failed to parse access URL")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy