Skip to content

Commit

Permalink
refs #62: fix broken image tests
Browse files Browse the repository at this point in the history
* TODO: we need to add test cases for build/exec stages.
  • Loading branch information
adrysn committed Oct 22, 2017
1 parent 1ff88e1 commit 08ae9eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def execute(self, code, user_input=None):
codecs.getincrementaldecoder('utf8')(),
)
try:
msg_in = (b'', code.encode('utf8'))
msg_in = (b'code', code.encode('utf8'))
kin.send_multipart(msg_in)
while True:
if kout.poll(timeout=10_000) == 0: # 10 sec
Expand All @@ -174,7 +174,7 @@ def execute(self, code, user_input=None):
break
elif reply_type == b'waiting-input':
assert isinstance(user_input, str), 'User input required'
msg_in = (b'', user_input.encode('utf8'))
msg_in = (b'code', user_input.encode('utf8'))
time.sleep(0.1)
kin.send_multipart(msg_in)
elif reply_type == b'stdout':
Expand Down

0 comments on commit 08ae9eb

Please sign in to comment.