Skip to content

Commit

Permalink
test: fix nondeterministic unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
heuels committed Aug 28, 2019
1 parent 962d274 commit 0e8906a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/units/modules/network/routeros/test_routeros_facts.py
Expand Up @@ -91,12 +91,8 @@ def test_routeros_facts_config(self):
def test_routeros_facts_interfaces(self):
set_module_args(dict(gather_subset='interfaces'))
result = self.execute_module()
self.assertEqual(
result['ansible_facts']['ansible_net_all_ipv4_addresses'][0], '10.37.129.3'
)
self.assertEqual(
result['ansible_facts']['ansible_net_all_ipv4_addresses'][0],
result['ansible_facts']['ansible_net_interfaces']['ether1']['ipv4'][0]['address']
self.assertIn(
result['ansible_facts']['ansible_net_all_ipv4_addresses'][0], ['10.37.129.3', '10.37.0.0']
)
self.assertEqual(
result['ansible_facts']['ansible_net_all_ipv6_addresses'], ['fe80::21c:42ff:fe36:5290']
Expand Down

0 comments on commit 0e8906a

Please sign in to comment.