Skip to content

Commit 08a7e5c

Browse files
committed
[test] wait for workspaces to stop
Tests intermittently fail with to avoid intermittent failures
1 parent 812ab37 commit 08a7e5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/pkg/integration/workspace.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func LaunchWorkspaceDirectly(t *testing.T, ctx context.Context, api *ComponentAP
297297
stopWs = stopWsF(t, req.Id, req.Metadata.MetaId, api, req.Type == wsmanapi.WorkspaceType_PREBUILD)
298298
defer func() {
299299
if err != nil {
300-
_, _ = stopWs(false, api)
300+
_, _ = stopWs(true, api)
301301
}
302302
}()
303303

@@ -453,7 +453,7 @@ func LaunchWorkspaceWithOptions(t *testing.T, ctx context.Context, opts *LaunchW
453453
stopWs = stopWsF(t, wi.LatestInstance.ID, resp.CreatedWorkspaceID, api, false)
454454
defer func() {
455455
if err != nil {
456-
_, _ = stopWs(false, api)
456+
_, _ = stopWs(true, api)
457457
}
458458
}()
459459

0 commit comments

Comments
 (0)