Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d0d9bb

Browse files
committed
fix test
1 parent 0dd5552 commit 5d0d9bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/workspaces_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ func TestWorkspacesByOwner(t *testing.T) {
290290
require.Len(t, workspaces, 1)
291291

292292
// Create same name workspace that should be included
293-
_ = coderdtest.CreateWorkspace(t, client, user.OrganizationID, template.ID, func(cwr *codersdk.CreateWorkspaceRequest) { cwr.Name = w.Name })
293+
other := coderdtest.CreateAnotherUser(t, client, user.OrganizationID)
294+
_ = coderdtest.CreateWorkspace(t, other, user.OrganizationID, template.ID, func(cwr *codersdk.CreateWorkspaceRequest) { cwr.Name = w.Name })
294295

295296
workspaces, err = client.Workspaces(context.Background(), codersdk.WorkspaceFilter{
296297
Name: w.Name,

0 commit comments

Comments
 (0)