From 60c337923d65e5f348af84bb919c88ae1c3532cb Mon Sep 17 00:00:00 2001 From: Abhineet Jain Date: Fri, 27 May 2022 14:35:41 +0000 Subject: [PATCH] update unit test --- coderd/workspaces_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coderd/workspaces_test.go b/coderd/workspaces_test.go index aa57b528e77b2..6bba566ecdf03 100644 --- a/coderd/workspaces_test.go +++ b/coderd/workspaces_test.go @@ -651,7 +651,7 @@ func TestWorkspaceExtend(t *testing.T) { err = client.PutExtendWorkspace(ctx, workspace.ID, codersdk.PutExtendWorkspaceRequest{ Deadline: time.Time{}, }) - require.ErrorContains(t, err, "deadline: required", "setting an empty deadline on a workspace should fail") + 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") // Updating with an earlier time should also fail err = client.PutExtendWorkspace(ctx, workspace.ID, codersdk.PutExtendWorkspaceRequest{