Skip to content

Commit d34f352

Browse files
committed
[test] fix context tests when run as gitpod-integration-test user
1 parent 882d336 commit d34f352

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/tests/workspace/contexts_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ func runContextTests(t *testing.T, tests []ContextTest) {
134134
api := integration.NewComponentAPI(ctx, cfg.Namespace(), kubeconfig, cfg.Client())
135135
defer api.Done(t)
136136

137+
_, err := api.CreateUser(username, userToken)
138+
if err != nil {
139+
t.Fatal(err)
140+
}
141+
137142
nfo, stopWs, err := integration.LaunchWorkspaceFromContextURL(t, ctx, test.ContextURL, username, api)
138143
if err != nil {
139144
t.Fatal(err)

0 commit comments

Comments
 (0)