Skip to content

chore: Use standardized test timeouts and delays #3291

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 16 commits into from
Aug 1, 2022
Merged
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
chore: Fix lint errors caught in main merge
  • Loading branch information
mafredri committed Aug 1, 2022
commit 43629d3cf6aeb331f5d9741e89b172ad6bdf8c2e
12 changes: 2 additions & 10 deletions cli/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,7 @@ func TestServer(t *testing.T) {
}()

// Just wait for startup
require.Eventually(t, func() bool {
var err error
_, err = cfg.URL().Read()
return err == nil
}, 15*time.Second, 25*time.Millisecond)
_ = waitAccessURL(t, cfg)

cancelFunc()
require.ErrorIs(t, <-errC, context.Canceled)
Expand Down Expand Up @@ -194,11 +190,7 @@ func TestServer(t *testing.T) {
}()

// Just wait for startup
require.Eventually(t, func() bool {
var err error
_, err = cfg.URL().Read()
return err == nil
}, 15*time.Second, 25*time.Millisecond)
_ = waitAccessURL(t, cfg)

cancelFunc()
require.ErrorIs(t, <-errC, context.Canceled)
Expand Down