Skip to content

Commit 7f8d3e3

Browse files
committed
Add waitForStop
Signed-off-by: JenTing Hsiao <[email protected]>
1 parent 418142d commit 7f8d3e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/pkg/integration/workspace.go

+4
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ func LaunchWorkspaceDirectly(ctx context.Context, api *ComponentAPI, opts ...Lau
206206
}
207207
break
208208
}
209+
210+
if !waitForStop {
211+
return nil, nil
212+
}
209213
for {
210214
lastStatus, err = WaitForWorkspaceStop(tctx, api, req.Id)
211215
if st, ok := status.FromError(err); ok && st.Code() == codes.Unavailable {

0 commit comments

Comments
 (0)