Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test: add sleep interval in TestPatchCancelWorkspaceBuild
  • Loading branch information
kacpersaw committed Aug 25, 2025
commit a428d12a05d6796a43d1f8914a7afc426fa7b0cc
3 changes: 3 additions & 0 deletions coderd/workspacebuilds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ func TestPatchCancelWorkspaceBuild(t *testing.T) {
build, err = client.WorkspaceBuild(ctx, workspace.LatestBuild.ID)
return assert.NoError(t, err) && build.Job.Status == codersdk.ProvisionerJobRunning
}, testutil.WaitShort, testutil.IntervalFast)

time.Sleep(testutil.IntervalMedium)

err := client.CancelWorkspaceBuild(ctx, build.ID, codersdk.CancelWorkspaceBuildParams{})
require.NoError(t, err)
require.Eventually(t, func() bool {
Expand Down
Loading