Skip to content

Commit 586d88f

Browse files
fix: JobID -> AgentID in dbauthz_test
1 parent eb857c1 commit 586d88f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2633,9 +2633,8 @@ func (s *MethodTestSuite) TestSystemFunctions() {
26332633
check.Args(database.InsertWorkspaceAppStatsParams{}).Asserts(rbac.ResourceSystem, policy.ActionCreate)
26342634
}))
26352635
s.Run("InsertWorkspaceAgentScriptTimings", s.Subtest(func(db database.Store, check *expects) {
2636-
j := dbgen.ProvisionerJob(s.T(), db, nil, database.ProvisionerJob{})
26372636
check.Args(database.InsertWorkspaceAgentScriptTimingsParams{
2638-
JobID: j.ID,
2637+
AgentID: uuid.New(),
26392638
}).Asserts( /* rbac.ResourceSystem, policy.ActionCreate */ )
26402639
}))
26412640
s.Run("InsertWorkspaceAgentScripts", s.Subtest(func(db database.Store, check *expects) {

0 commit comments

Comments
 (0)