Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit71493fe

Browse files
chore: add system context for test
1 parent340f9da commit71493fe

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)

[8]ページ先頭

©2009-2025 Movatter.jp