mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix unit test (attempt 1)
This commit is contained in:
parent
a461d7bf12
commit
598226def1
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ class NetworkTestCase(TestCase):
|
|||
of the running TCP connections
|
||||
'''
|
||||
with patch.object(salt.utils.network, 'active_tcp', return_value='A'):
|
||||
self.assertEqual(network.active_tcp(), 'A')
|
||||
with patch.dict(network.__grains__, {'kernel': 'Linux'}):
|
||||
self.assertEqual(network.active_tcp(), 'A')
|
||||
|
||||
def test_traceroute(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue