File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3191,9 +3191,15 @@ func (s *MethodTestSuite) TestExtraMethods() {
3191
3191
provisionersdk .TagScope : provisionersdk .ScopeOrganization ,
3192
3192
},
3193
3193
})
3194
- ds , err := db .GetProvisionerDaemonsWithStatusByOrganization (context .Background (), database.GetProvisionerDaemonsWithStatusByOrganizationParams {OrganizationID : org .ID })
3194
+ ds , err := db .GetProvisionerDaemonsWithStatusByOrganization (context .Background (), database.GetProvisionerDaemonsWithStatusByOrganizationParams {
3195
+ OrganizationID : org .ID ,
3196
+ StaleIntervalMS : 86400000 , // 24 hours.
3197
+ })
3195
3198
s .NoError (err , "get provisioner daemon with status by org" )
3196
- check .Args (database.GetProvisionerDaemonsWithStatusByOrganizationParams {OrganizationID : org .ID }).Asserts (d , policy .ActionRead ).Returns (ds )
3199
+ check .Args (database.GetProvisionerDaemonsWithStatusByOrganizationParams {
3200
+ OrganizationID : org .ID ,
3201
+ StaleIntervalMS : 86400000 , // 24 hours.
3202
+ }).Asserts (d , policy .ActionRead ).Returns (ds )
3197
3203
}))
3198
3204
s .Run ("GetEligibleProvisionerDaemonsByProvisionerJobIDs" , s .Subtest (func (db database.Store , check * expects ) {
3199
3205
dbtestutil .DisableForeignKeysAndTriggers (s .T (), db )
You can’t perform that action at this time.
0 commit comments