Skip to content

Commit 7a5c873

Browse files
authored
test: Fix unit test in 'TestWorkspaceExtend' (#1836)
1 parent 9929189 commit 7a5c873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/workspaces_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ func TestWorkspaceExtend(t *testing.T) {
651651
err = client.PutExtendWorkspace(ctx, workspace.ID, codersdk.PutExtendWorkspaceRequest{
652652
Deadline: time.Time{},
653653
})
654-
require.ErrorContains(t, err, "deadline: required", "setting an empty deadline on a workspace should fail")
654+
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")
655655

656656
// Updating with an earlier time should also fail
657657
err = client.PutExtendWorkspace(ctx, workspace.ID, codersdk.PutExtendWorkspaceRequest{

0 commit comments

Comments
 (0)