-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #167 #168
Conversation
@@ -57,7 +57,7 @@ def start_manager_server(self): | |||
# runner queue to web server | |||
publish_runner = Queue(maxsize=1) | |||
# case count queue | |||
case_count = Queue(maxsize=1) | |||
case_count = Queue(maxsize=-1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- here is the case_count queue to block the recorder!
- so make the size of queue to the max-size
cb.finish() | ||
self.end_handler() | ||
return | ||
with new_locker(self.bus_client, self.key, self.lock): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add new_locker when get/put the case_count
@@ -223,7 +222,7 @@ def result_handler(self, result): | |||
:param result: | |||
:return: | |||
''' | |||
self.count_case("case_count", self.lock) | |||
self.count_case(self.recorder_key, self.lock) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add new_locker when get/put the case_count
@@ -34,6 +34,8 @@ def assert_that(real, expect, **kwargs): | |||
result = True | |||
for temp in real.keys(): | |||
result = result and AssertHelper.assert_that(real.get(temp), expect.get(temp)) | |||
for temp in expect.keys(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here must check the real == expect, double check
@locker
to thecount_case