Skip to content

Commit 6b95ddd

Browse files
committed
lint
1 parent 8b293fe commit 6b95ddd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

agent/apphealth_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ import (
1515
"github.com/coder/coder/agent"
1616
"github.com/coder/coder/coderd/httpapi"
1717
"github.com/coder/coder/codersdk"
18+
"github.com/coder/coder/testutil"
1819
)
1920

2021
func TestAppHealth(t *testing.T) {
2122
t.Parallel()
2223
t.Run("Healthy", func(t *testing.T) {
2324
t.Parallel()
24-
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
25+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
2526
defer cancel()
2627
apps := []codersdk.WorkspaceApp{
2728
{
@@ -58,12 +59,12 @@ func TestAppHealth(t *testing.T) {
5859
}
5960

6061
return apps[1].Health == codersdk.WorkspaceAppHealthHealthy
61-
}, 5*time.Second, 1*time.Second)
62+
}, testutil.WaitLong, testutil.IntervalSlow)
6263
})
6364

6465
t.Run("500", func(t *testing.T) {
6566
t.Parallel()
66-
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
67+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
6768
defer cancel()
6869
apps := []codersdk.WorkspaceApp{
6970
{
@@ -91,7 +92,7 @@ func TestAppHealth(t *testing.T) {
9192
}
9293

9394
return apps[0].Health == codersdk.WorkspaceAppHealthUnhealthy
94-
}, 10*time.Second, 1*time.Second)
95+
}, testutil.WaitLong, testutil.IntervalSlow)
9596
})
9697

9798
t.Run("Timeout", func(t *testing.T) {

0 commit comments

Comments
 (0)