Skip to content

Commit ee3f32b

Browse files
committed
Extend timeout of built-in PostgreSQL fetch
1 parent 6546be9 commit ee3f32b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func TestServer(t *testing.T) {
8585
require.Eventually(t, func() bool {
8686
accessURLRaw, err := cfg.URL().Read()
8787
return accessURLRaw != "" && err == nil
88-
}, time.Minute, 25*time.Millisecond)
88+
}, 3*time.Minute, 250*time.Millisecond)
8989
cancelFunc()
9090
require.ErrorIs(t, <-errC, context.Canceled)
9191
})

coderd/coderdtest/coderdtest.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func NewWithAPI(t *testing.T, options *Options) (*codersdk.Client, *coderd.API)
149149

150150
// We set the handler after server creation for the access URL.
151151
coderAPI := coderd.New(&coderd.Options{
152-
AgentConnectionUpdateFrequency: 150 * time.Millisecond,
152+
AgentConnectionUpdateFrequency: 250 * time.Millisecond,
153153
AccessURL: serverURL,
154154
Logger: slogtest.Make(t, nil).Leveled(slog.LevelDebug),
155155
Database: db,

0 commit comments

Comments
 (0)