Skip to content

Commit 71493fe

Browse files
chore: add system context for test
1 parent 340f9da commit 71493fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/agentapi/devcontainer_agent_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func TestDevContainerAgentAPI(t *testing.T) {
9999
require.NoError(t, err)
100100

101101
// Then: We expect this dev container agent to be created.
102-
agent, err := api.Database.GetWorkspaceAgentByID(ctx, agentID)
102+
agent, err := api.Database.GetWorkspaceAgentByID(dbauthz.AsSystemRestricted(ctx), agentID) //nolint:gocritic // this is a test
103103
require.NoError(t, err)
104104
require.Equal(t, "/workspaces/coder", agent.Directory)
105105
require.Equal(t, "amd64", agent.Architecture)

0 commit comments

Comments
 (0)