@@ -1183,8 +1183,9 @@ func TestPostWorkspaceBuild(t *testing.T) {
1183
1183
})
1184
1184
}
1185
1185
1186
- //nolint:paralleltest
1187
1186
func TestWorkspaceBuildTimings (t * testing.T ) {
1187
+ t .Parallel ()
1188
+
1188
1189
// Setup the test environment with a template and version
1189
1190
db , pubsub := dbtestutil .NewDB (t )
1190
1191
client := coderdtest .New (t , & coderdtest.Options {
@@ -1237,8 +1238,9 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1237
1238
})
1238
1239
}
1239
1240
1240
- //nolint:paralleltest
1241
1241
t .Run ("NonExistentBuild" , func (t * testing.T ) {
1242
+ t .Parallel ()
1243
+
1242
1244
// Given: a non-existent build
1243
1245
buildID := uuid .New ()
1244
1246
@@ -1252,8 +1254,9 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1252
1254
require .Contains (t , err .Error (), "not found" )
1253
1255
})
1254
1256
1255
- //nolint:paralleltest
1256
1257
t .Run ("EmptyTimings" , func (t * testing.T ) {
1258
+ t .Parallel ()
1259
+
1257
1260
// Given: a build with no timings
1258
1261
build := makeBuild ()
1259
1262
@@ -1268,8 +1271,9 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1268
1271
require .Empty (t , res .AgentScriptTimings )
1269
1272
})
1270
1273
1271
- //nolint:paralleltest
1272
1274
t .Run ("ProvisionerTimings" , func (t * testing.T ) {
1275
+ t .Parallel ()
1276
+
1273
1277
// Given: a build with provisioner timings
1274
1278
build := makeBuild ()
1275
1279
provisionerTimings := dbgen .ProvisionerJobTimings (t , db , build , 5 )
@@ -1295,8 +1299,9 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1295
1299
}
1296
1300
})
1297
1301
1298
- //nolint:paralleltest
1299
1302
t .Run ("AgentScriptTimings" , func (t * testing.T ) {
1303
+ t .Parallel ()
1304
+
1300
1305
// Given: a build with agent script timings
1301
1306
build := makeBuild ()
1302
1307
resource := dbgen .WorkspaceResource (t , db , database.WorkspaceResource {
@@ -1331,8 +1336,9 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1331
1336
}
1332
1337
})
1333
1338
1334
- //nolint:paralleltest
1335
1339
t .Run ("NoAgentScripts" , func (t * testing.T ) {
1340
+ t .Parallel ()
1341
+
1336
1342
// Given: a build with no agent scripts
1337
1343
build := makeBuild ()
1338
1344
resource := dbgen .WorkspaceResource (t , db , database.WorkspaceResource {
@@ -1353,8 +1359,9 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1353
1359
})
1354
1360
1355
1361
// Some workspaces might not have agents. It is improbable, but possible.
1356
- //nolint:paralleltest
1357
1362
t .Run ("NoAgents" , func (t * testing.T ) {
1363
+ t .Parallel ()
1364
+
1358
1365
// Given: a build with no agents
1359
1366
build := makeBuild ()
1360
1367
dbgen .WorkspaceResource (t , db , database.WorkspaceResource {
@@ -1369,10 +1376,12 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1369
1376
1370
1377
// Then: return a response with empty agent script timings
1371
1378
require .Empty (t , res .AgentScriptTimings )
1379
+ require .Empty (t , res .AgentConnectionTimings )
1372
1380
})
1373
1381
1374
- //nolint:paralleltest
1375
1382
t .Run ("AgentConnectionTimings" , func (t * testing.T ) {
1383
+ t .Parallel ()
1384
+
1376
1385
// Given: a build with multiple agents
1377
1386
build := makeBuild ()
1378
1387
resource := dbgen .WorkspaceResource (t , db , database.WorkspaceResource {
0 commit comments