Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a846eb7

Browse files
committed
Wait long
1 parent aaedd1c commit a846eb7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

coderd/workspacebuilds_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestWorkspaceBuild(t *testing.T) {
4242
propagation.Baggage{},
4343
),
4444
)
45-
ctx := testutil.Context(t, testutil.WaitShort)
45+
ctx := testutil.Context(t, testutil.WaitLong)
4646
auditor := audit.NewMock()
4747
client, db := coderdtest.NewWithDatabase(t, &coderdtest.Options{
4848
IncludeProvisionerDaemon: true,
@@ -1244,7 +1244,7 @@ func TestWorkspaceBuildTimings(t *testing.T) {
12441244

12451245
// When: fetching an inexistent build
12461246
buildID := uuid.New()
1247-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
1247+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
12481248
t.Cleanup(cancel)
12491249
_, err := client.WorkspaceBuildTimings(ctx, buildID)
12501250

@@ -1258,7 +1258,7 @@ func TestWorkspaceBuildTimings(t *testing.T) {
12581258

12591259
// When: fetching timings for a build with no timings
12601260
build := makeBuild()
1261-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
1261+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
12621262
t.Cleanup(cancel)
12631263
res, err := client.WorkspaceBuildTimings(ctx, build.ID)
12641264

@@ -1276,7 +1276,7 @@ func TestWorkspaceBuildTimings(t *testing.T) {
12761276
provisionerTimings := dbgen.ProvisionerJobTimings(t, db, build, 5)
12771277

12781278
// Then: return a response with the expected timings
1279-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
1279+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
12801280
t.Cleanup(cancel)
12811281
res, err := client.WorkspaceBuildTimings(ctx, build.ID)
12821282
require.NoError(t, err)
@@ -1312,7 +1312,7 @@ func TestWorkspaceBuildTimings(t *testing.T) {
13121312
agentScriptTimings := dbgen.WorkspaceAgentScriptTimings(t, db, script, 5)
13131313

13141314
// Then: return a response with the expected timings
1315-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
1315+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
13161316
t.Cleanup(cancel)
13171317
res, err := client.WorkspaceBuildTimings(ctx, build.ID)
13181318
require.NoError(t, err)
@@ -1342,7 +1342,7 @@ func TestWorkspaceBuildTimings(t *testing.T) {
13421342
})
13431343

13441344
// Then: return a response with empty agent script timings
1345-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
1345+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
13461346
t.Cleanup(cancel)
13471347
res, err := client.WorkspaceBuildTimings(ctx, build.ID)
13481348
require.NoError(t, err)
@@ -1360,7 +1360,7 @@ func TestWorkspaceBuildTimings(t *testing.T) {
13601360
})
13611361

13621362
// Then: return a response with empty agent script timings
1363-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
1363+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
13641364
t.Cleanup(cancel)
13651365
res, err := client.WorkspaceBuildTimings(ctx, build.ID)
13661366
require.NoError(t, err)

coderd/workspaces_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3642,7 +3642,7 @@ func TestWorkspaceTimings(t *testing.T) {
36423642
dbgen.WorkspaceAgentScriptTimings(t, db, script, 3)
36433643

36443644
// When: fetching the timings
3645-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
3645+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
36463646
t.Cleanup(cancel)
36473647
res, err := client.WorkspaceTimings(ctx, ws.ID)
36483648

@@ -3657,7 +3657,7 @@ func TestWorkspaceTimings(t *testing.T) {
36573657

36583658
// When: fetching an inexistent workspace
36593659
workspaceID := uuid.New()
3660-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
3660+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
36613661
t.Cleanup(cancel)
36623662
_, err := client.WorkspaceTimings(ctx, workspaceID)
36633663

0 commit comments

Comments
 (0)