Skip to content

Commit b6e0ba2

Browse files
committed
squelch linter complaints in workspaceagents_test.go
1 parent 81881fe commit b6e0ba2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

enterprise/coderd/workspaceagents_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func TestBlockNonBrowser(t *testing.T) {
4545
},
4646
})
4747
_, agent := setupWorkspaceAgent(t, client, user, 0)
48+
//nolint:gocritic // Testing that even the owner gets blocked.
4849
_, err := client.DialWorkspaceAgent(context.Background(), agent.ID, nil)
4950
var apiErr *codersdk.Error
5051
require.ErrorAs(t, err, &apiErr)
@@ -63,6 +64,7 @@ func TestBlockNonBrowser(t *testing.T) {
6364
},
6465
})
6566
_, agent := setupWorkspaceAgent(t, client, user, 0)
67+
//nolint:gocritic // Testing RBAC is not the point of this test.
6668
conn, err := client.DialWorkspaceAgent(context.Background(), agent.ID, nil)
6769
require.NoError(t, err)
6870
_ = conn.Close()

0 commit comments

Comments
 (0)