Skip to content

Commit 8b84b09

Browse files
committed
fix: Additional lints
1 parent 7fd6449 commit 8b84b09

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

agent/agent_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333
"cdr.dev/slog"
3434
"cdr.dev/slog/sloggers/slogtest"
3535
"github.com/coder/coder/agent"
36+
"github.com/coder/coder/internal/testutil"
3637
"github.com/coder/coder/peer"
3738
"github.com/coder/coder/peerbroker"
3839
"github.com/coder/coder/peerbroker/proto"
@@ -257,7 +258,7 @@ func TestAgent(t *testing.T) {
257258
}
258259
gotContent = string(content)
259260
return true
260-
}, 15*time.Second, 100*time.Millisecond)
261+
}, testutil.WaitMedium, testutil.IntervalMedium)
261262
require.Equal(t, content, strings.TrimSpace(gotContent))
262263
})
263264

site/site_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func TestServingFiles(t *testing.T) {
109109
defer srv.Close()
110110

111111
// Create a context
112-
ctx, cancelFunc := context.WithTimeout(context.Background(), 5*time.Second)
112+
ctx, cancelFunc := context.WithTimeout(context.Background(), testutil.WaitShort)
113113
defer cancelFunc()
114114

115115
testCases := []struct {

0 commit comments

Comments
 (0)