Skip to content

Commit

Permalink
Fix missing function param
Browse files Browse the repository at this point in the history
  • Loading branch information
iansltx committed Dec 17, 2024
1 parent 202f00d commit b539742
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/datastore/mysql/policies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,15 @@ func testGlobalPolicyPendingScriptsAndInstalls(t *testing.T, ds *Datastore) {
ScriptID: &script.ID,
})
require.NoError(t, err)
pendingScripts, err := ds.ListPendingHostScriptExecutions(ctx, policy1.ID)
pendingScripts, err := ds.ListPendingHostScriptExecutions(ctx, policy1.ID, false)
require.NoError(t, err)
require.Equal(t, 1, len(pendingScripts))

// delete the policy
_, err = ds.DeleteGlobalPolicies(ctx, []uint{policy1.ID})
require.NoError(t, err)

pendingScripts, err = ds.ListPendingHostScriptExecutions(ctx, policy1.ID)
pendingScripts, err = ds.ListPendingHostScriptExecutions(ctx, policy1.ID, false)
require.NoError(t, err)
require.Equal(t, 0, len(pendingScripts))

Expand Down Expand Up @@ -854,15 +854,15 @@ func testTeamPolicyPendingScriptsAndInstalls(t *testing.T, ds *Datastore) {
ScriptID: &script.ID,
})
require.NoError(t, err)
pendingScripts, err := ds.ListPendingHostScriptExecutions(ctx, policy1.ID)
pendingScripts, err := ds.ListPendingHostScriptExecutions(ctx, policy1.ID, false)
require.NoError(t, err)
require.Equal(t, 1, len(pendingScripts))

// delete the policy
_, err = ds.DeleteTeamPolicies(ctx, team1.ID, []uint{policy1.ID})
require.NoError(t, err)

pendingScripts, err = ds.ListPendingHostScriptExecutions(ctx, policy1.ID)
pendingScripts, err = ds.ListPendingHostScriptExecutions(ctx, policy1.ID, false)
require.NoError(t, err)
require.Equal(t, 0, len(pendingScripts))

Expand Down

0 comments on commit b539742

Please sign in to comment.