Skip to content

Commit

Permalink
cleanup some other "run skrouterd" tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed May 26, 2022
1 parent 102945b commit 1d4bbb9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/system_tests_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,18 +474,16 @@ def test_standalone_no_inter_router(self):
('router', {'mode': 'standalone', 'id': 'all_by_myself1'}),
('listener', {'port': self.get_port(), 'role': 'inter-router'})
])
r = self.qdrouterd('routerX', conf, wait=False)
r.expect = Process.EXIT_FAIL
self.assertTrue(r.wait() != 0)
r = self.qdrouterd('routerX', conf, wait=False, expect=Process.EXIT_FAIL)
self.assertEqual(r.wait(), 1)

conf = Qdrouterd.Config([
('router', {'mode': 'standalone', 'id': 'all_by_myself2'}),
('listener', {'port': self.get_port(), 'role': 'normal'}),
('connector', {'port': self.get_port(), 'role': 'inter-router'})
])
r = self.qdrouterd('routerY', conf, wait=False)
r.expect = Process.EXIT_FAIL
self.assertTrue(r.wait() != 0)
r = self.qdrouterd('routerY', conf, wait=False, expect=Process.EXIT_FAIL)
self.assertEqual(r.wait(), 1)

def test_get_schema(self):
schema = dictify(QdSchema().dump())
Expand Down

0 comments on commit 1d4bbb9

Please sign in to comment.