Skip to content

Commit

Permalink
Some more tests, add a new scheduler get_host endpoint - 2 - try to i…
Browse files Browse the repository at this point in the history
…mprove Python 2.6 tests
  • Loading branch information
mohierf committed Mar 24, 2018
1 parent acbd998 commit f3cb910
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/test_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,15 @@ def _dispatching(self, env_filename='cfg/dispatcher/simple.ini', loops=3, multi_
print("Check reachable response")
self.clear_logs()
my_dispatcher.check_reachable()
for link in my_dispatcher.all_daemons_links:
if link == my_dispatcher.arbiter_link:
continue
self.assert_any_log_match(re.escape(
"My (%s) fresh managed configuration: %s"
% (link.name, link.cfg_managed)
))
# Only for Python > 2.7, DEBUG logs ...
if os.sys.version_info > (2, 7):
for link in my_dispatcher.all_daemons_links:
if link == my_dispatcher.arbiter_link:
continue
self.assert_any_log_match(re.escape(
"My (%s) fresh managed configuration: %s"
% (link.name, link.cfg_managed)
))

def test_bad_init(self):
""" Test that:
Expand Down

0 comments on commit f3cb910

Please sign in to comment.