@@ -1188,17 +1188,19 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1188
1188
1189
1189
// Setup the test environment with a template and version
1190
1190
db , pubsub := dbtestutil .NewDB (t )
1191
- client := coderdtest .New (t , & coderdtest.Options {
1191
+ ownerClient := coderdtest .New (t , & coderdtest.Options {
1192
1192
Database : db ,
1193
1193
Pubsub : pubsub ,
1194
1194
})
1195
- owner := coderdtest .CreateFirstUser (t , client )
1195
+ owner := coderdtest .CreateFirstUser (t , ownerClient )
1196
+ client , user := coderdtest .CreateAnotherUser (t , ownerClient , owner .OrganizationID )
1197
+
1196
1198
file := dbgen .File (t , db , database.File {
1197
1199
CreatedBy : owner .UserID ,
1198
1200
})
1199
1201
versionJob := dbgen .ProvisionerJob (t , db , pubsub , database.ProvisionerJob {
1200
1202
OrganizationID : owner .OrganizationID ,
1201
- InitiatorID : owner . UserID ,
1203
+ InitiatorID : user . ID ,
1202
1204
FileID : file .ID ,
1203
1205
Tags : database.StringMap {
1204
1206
"custom" : "true" ,
@@ -1219,7 +1221,7 @@ func TestWorkspaceBuildTimings(t *testing.T) {
1219
1221
// build number, each test will have its own workspace and build.
1220
1222
makeBuild := func () database.WorkspaceBuild {
1221
1223
ws := dbgen .Workspace (t , db , database.WorkspaceTable {
1222
- OwnerID : owner . UserID ,
1224
+ OwnerID : user . ID ,
1223
1225
OrganizationID : owner .OrganizationID ,
1224
1226
TemplateID : template .ID ,
1225
1227
})
0 commit comments