Skip to content

Commit

Permalink
Removed unused variable in test_instance_peers
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterseth committed Aug 23, 2023
1 parent 17ca306 commit 17f3e4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awx/main/tests/functional/api/test_instance_peers.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ def test_control_node_retains_other_peers(self, node_type):
hop2 = Instance.objects.create(hostname='hop2', node_type='hop', listener_port=6789, peers_from_control_nodes=False)
hop1.peers.add(hop2)

control = Instance.objects.create(hostname='control', node_type=node_type, listener_port=None)
# a control node is added
Instance.objects.create(hostname='control', node_type=node_type, listener_port=None)

assert hop1.peers.exists()

Expand Down

0 comments on commit 17f3e4b

Please sign in to comment.