File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import (
33
33
"cdr.dev/slog"
34
34
"cdr.dev/slog/sloggers/slogtest"
35
35
"github.com/coder/coder/agent"
36
+ "github.com/coder/coder/internal/testutil"
36
37
"github.com/coder/coder/peer"
37
38
"github.com/coder/coder/peerbroker"
38
39
"github.com/coder/coder/peerbroker/proto"
@@ -257,7 +258,7 @@ func TestAgent(t *testing.T) {
257
258
}
258
259
gotContent = string (content )
259
260
return true
260
- }, 15 * time . Second , 100 * time . Millisecond )
261
+ }, testutil . WaitMedium , testutil . IntervalMedium )
261
262
require .Equal (t , content , strings .TrimSpace (gotContent ))
262
263
})
263
264
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ func TestServingFiles(t *testing.T) {
109
109
defer srv .Close ()
110
110
111
111
// Create a context
112
- ctx , cancelFunc := context .WithTimeout (context .Background (), 5 * time . Second )
112
+ ctx , cancelFunc := context .WithTimeout (context .Background (), testutil . WaitShort )
113
113
defer cancelFunc ()
114
114
115
115
testCases := []struct {
You can’t perform that action at this time.
0 commit comments