File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -577,8 +577,12 @@ func TestPatchCancelWorkspaceBuild(t *testing.T) {
577
577
build , err = client .WorkspaceBuild (ctx , workspace .LatestBuild .ID )
578
578
return assert .NoError (t , err ) && build .Job .Status == codersdk .ProvisionerJobRunning
579
579
}, testutil .WaitShort , testutil .IntervalFast )
580
- err := client .CancelWorkspaceBuild (ctx , build .ID , codersdk.CancelWorkspaceBuildParams {})
581
- require .NoError (t , err )
580
+
581
+ require .Eventually (t , func () bool {
582
+ err := client .CancelWorkspaceBuild (ctx , build .ID , codersdk.CancelWorkspaceBuildParams {})
583
+ return assert .NoError (t , err )
584
+ }, testutil .WaitShort , testutil .IntervalMedium )
585
+
582
586
require .Eventually (t , func () bool {
583
587
var err error
584
588
build , err = client .WorkspaceBuild (ctx , build .ID )
You can’t perform that action at this time.
0 commit comments