Skip to content

Commit 12a664f

Browse files
authored
fix: coderd: fix flaky test (#2343)
1 parent afa5443 commit 12a664f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/workspaces_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,8 @@ func TestWorkspaceExtend(t *testing.T) {
10101010
})
10111011
require.ErrorContains(t, err, "deadline: Validation failed for tag \"required\" with value: \"0001-01-01 00:00:00 +0000 UTC\"", "setting an empty deadline on a workspace should fail")
10121012

1013-
// Updating with a deadline 29 minutes in the future should fail
1014-
deadlineTooSoon := time.Now().Add(29 * time.Minute)
1013+
// Updating with a deadline less than 30 minutes in the future should fail
1014+
deadlineTooSoon := time.Now().Add(15 * time.Minute) // XXX: time.Now
10151015
err = client.PutExtendWorkspace(ctx, workspace.ID, codersdk.PutExtendWorkspaceRequest{
10161016
Deadline: deadlineTooSoon,
10171017
})

0 commit comments

Comments
 (0)