Skip to content

Commit

Permalink
Also return on Send, Sleep and Signal
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Dec 19, 2024
1 parent acf8cf2 commit 79bced0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metabox/metabox/core/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,18 @@ def expect_not(self, data, timeout=60):
def send(self, data):
assert self._pts is not None
self._pts.send(data.encode("utf-8"), binary=True)
# send raises an exception on failure
return True

def sleep(self, secs):
time.sleep(secs)
return True

def signal(self, signal):
assert self._pts is not None
self._pts.send_signal(signal)
# same as send, this uses send under the hood
return True

def select_test_plan(self, testplan_id, timeout=60):
assert self._pts is not None
Expand Down

0 comments on commit 79bced0

Please sign in to comment.