Skip to content

Commit

Permalink
Add waitForStop
Browse files Browse the repository at this point in the history
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
  • Loading branch information
jenting committed Sep 13, 2022
1 parent 094f593 commit 8dce48a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/pkg/integration/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ func LaunchWorkspaceDirectly(ctx context.Context, api *ComponentAPI, opts ...Lau
}
break
}

if !waitForStop {
return nil, nil
}
for {
lastStatus, err = WaitForWorkspaceStop(tctx, api, req.Id)
if st, ok := status.FromError(err); ok && st.Code() == codes.Unavailable {
Expand Down

0 comments on commit 8dce48a

Please sign in to comment.