Skip to content

Commit

Permalink
PR(FIX): Refactor AddPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadlone committed Oct 20, 2024
1 parent cae50fd commit 4bbc532
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/acp.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ func addPolicyACP(
require.Fail(s.t, "Expected error should not have an expected policyID with it.", s.testCase.Description)
}

for i, node := range getNodes(action.NodeID, s.nodes) {
identity := getIdentity(s, i, action.Identity)
nodeIDs, nodes := getNodesWithIDs(action.NodeID, s.nodes)
for index, node := range nodes {
nodeID := nodeIDs[index]
identity := getIdentity(s, nodeID, action.Identity)
ctx := db.SetContextIdentity(s.ctx, identity)
policyResult, err := node.AddPolicy(ctx, action.Policy)

Expand Down

0 comments on commit 4bbc532

Please sign in to comment.