fix: add workspace option 'deleted' to options type (#2095)

* fix: add workspace option 'deleted' to options type

* dead code
This commit is contained in:
Garrett Delfosse
2022-06-06 12:23:02 -05:00
committed by GitHub
parent 367897ef6b
commit 37b0aaa018
5 changed files with 32 additions and 23 deletions

View File

@ -46,10 +46,9 @@ func TestWorkspace(t *testing.T) {
workspace := coderdtest.CreateWorkspace(t, client, user.OrganizationID, template.ID)
coderdtest.AwaitWorkspaceBuildJob(t, client, workspace.LatestBuild.ID)
// Getting with deleted=true should fail.
// Getting with deleted=true should still work.
_, err := client.DeletedWorkspace(context.Background(), workspace.ID)
require.Error(t, err)
require.ErrorContains(t, err, "400") // bad request
require.NoError(t, err)
// Delete the workspace
build, err := client.CreateWorkspaceBuild(context.Background(), workspace.ID, codersdk.CreateWorkspaceBuildRequest{