Skip to content

test: Use a template to prevent migrations from running for every test #2462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Extend timeout of built-in PostgreSQL fetch
  • Loading branch information
kylecarbs committed Jun 26, 2022
commit ee3f32bc5af497e5902b175f328cc68fe51290f5
2 changes: 1 addition & 1 deletion cli/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func TestServer(t *testing.T) {
require.Eventually(t, func() bool {
accessURLRaw, err := cfg.URL().Read()
return accessURLRaw != "" && err == nil
}, time.Minute, 25*time.Millisecond)
}, 3*time.Minute, 250*time.Millisecond)
cancelFunc()
require.ErrorIs(t, <-errC, context.Canceled)
})
Expand Down
2 changes: 1 addition & 1 deletion coderd/coderdtest/coderdtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func NewWithAPI(t *testing.T, options *Options) (*codersdk.Client, *coderd.API)

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