Skip to content

Commit e56e2f7

Browse files
[integrationtests] create org (#18558)
Co-authored-by: Filip Troníček <[email protected]>
1 parent 5daf36e commit e56e2f7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/pkg/integration/workspace.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,11 @@ func LaunchWorkspaceWithOptions(t *testing.T, ctx context.Context, opts *LaunchW
371371
teams, _ := server.GetTeams(cctx)
372372
var orgId string
373373
if len(teams) == 0 {
374-
// hack: there might be a better value to use here
375-
orgId = u
374+
team, err := server.CreateTeam(cctx, "test-team")
375+
if err != nil {
376+
return nil, nil, xerrors.Errorf("cannot create team: %w", err)
377+
}
378+
orgId = team.ID
376379
} else {
377380
orgId = teams[0].ID
378381
}

0 commit comments

Comments
 (0)