File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4583,7 +4583,7 @@ func (s *MethodTestSuite) TestResourcesMonitor() {
4583
4583
monitor , err := db .FetchMemoryResourceMonitorsByAgentID (context .Background (), agt .ID )
4584
4584
require .NoError (s .T (), err )
4585
4585
4586
- check .Args (agt .ID ).Asserts (rbac .ResourceSystem , policy .ActionRead ).Returns (monitor )
4586
+ check .Args (agt .ID ).Asserts (rbac .ResourceWorkspaceAgentMemoryResourceMonitor , policy .ActionRead ).Returns (monitor )
4587
4587
}))
4588
4588
4589
4589
s .Run ("FetchVolumesResourceMonitorsByAgentID" , s .Subtest (func (db database.Store , check * expects ) {
@@ -4624,6 +4624,6 @@ func (s *MethodTestSuite) TestResourcesMonitor() {
4624
4624
monitors , err := db .FetchVolumesResourceMonitorsByAgentID (context .Background (), agt .ID )
4625
4625
require .NoError (s .T (), err )
4626
4626
4627
- check .Args (agt .ID ).Asserts (rbac .ResourceSystem , policy .ActionRead ).Returns (monitors )
4627
+ check .Args (agt .ID ).Asserts (rbac .ResourceWorkspaceAgentVolumeResourceMonitor , policy .ActionRead ).Returns (monitors )
4628
4628
}))
4629
4629
}
You can’t perform that action at this time.
0 commit comments