@@ -1183,9 +1183,8 @@ func TestPostWorkspaceBuild(t *testing.T) {
1183
1183
})
1184
1184
}
1185
1185
1186
+ //nolint:paralleltest
1186
1187
func TestWorkspaceBuildTimings (t * testing.T ) {
1187
- // t.Parallel()
1188
-
1189
1188
// Setup the test environment with a template and version
1190
1189
db , pubsub := dbtestutil .NewDB (t )
1191
1190
client := coderdtest .New (t , & coderdtest.Options {
@@ -1239,9 +1238,8 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1239
1238
})
1240
1239
}
1241
1240
1241
+ //nolint:paralleltest
1242
1242
t .Run ("NonExistentBuild" , func (t * testing.T ) {
1243
- // t.Parallel()
1244
-
1245
1243
// When: fetching an inexistent build
1246
1244
buildID := uuid .New ()
1247
1245
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
@@ -1253,9 +1251,8 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1253
1251
require .Contains (t , err .Error (), "not found" )
1254
1252
})
1255
1253
1254
+ //nolint:paralleltest
1256
1255
t .Run ("EmptyTimings" , func (t * testing.T ) {
1257
- // t.Parallel()
1258
-
1259
1256
// When: fetching timings for a build with no timings
1260
1257
build := makeBuild ()
1261
1258
ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
@@ -1268,9 +1265,8 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1268
1265
require .Empty (t , res .AgentScriptTimings )
1269
1266
})
1270
1267
1268
+ //nolint:paralleltest
1271
1269
t .Run ("ProvisionerTimings" , func (t * testing.T ) {
1272
- // t.Parallel()
1273
-
1274
1270
// When: fetching timings for a build with provisioner timings
1275
1271
build := makeBuild ()
1276
1272
provisionerTimings := dbgen .ProvisionerJobTimings (t , db , build , 5 )
@@ -1295,9 +1291,8 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1295
1291
}
1296
1292
})
1297
1293
1294
+ //nolint:paralleltest
1298
1295
t .Run ("AgentScriptTimings" , func (t * testing.T ) {
1299
- // t.Parallel()
1300
-
1301
1296
// When: fetching timings for a build with agent script timings
1302
1297
build := makeBuild ()
1303
1298
resource := dbgen .WorkspaceResource (t , db , database.WorkspaceResource {
@@ -1329,9 +1324,8 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1329
1324
}
1330
1325
})
1331
1326
1327
+ //nolint:paralleltest
1332
1328
t .Run ("NoAgentScripts" , func (t * testing.T ) {
1333
- // t.Parallel()
1334
-
1335
1329
// When: fetching timings for a build with no agent scripts
1336
1330
build := makeBuild ()
1337
1331
resource := dbgen .WorkspaceResource (t , db , database.WorkspaceResource {
@@ -1350,9 +1344,8 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1350
1344
})
1351
1345
1352
1346
// Some workspaces might not have agents. It is improbable, but possible.
1347
+ //nolint:paralleltest
1353
1348
t .Run ("NoAgents" , func (t * testing.T ) {
1354
- // t.Parallel()
1355
-
1356
1349
// When: fetching timings for a build with no agents
1357
1350
build := makeBuild ()
1358
1351
dbgen .WorkspaceResource (t , db , database.WorkspaceResource {
0 commit comments