summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
Diffstat (limited to 'monkey')
-rwxr-xr-xmonkey/monkey.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/monkey/monkey.py b/monkey/monkey.py
index f64a142..61ff573 100755
--- a/monkey/monkey.py
+++ b/monkey/monkey.py
@@ -11,8 +11,9 @@ from .util import PQueue
# Check whether all tests for problem [name] succeed.
def test(name, code):
try:
- reply = prolog.engine.create_and_ask(
- code=code, query='run_tests({})'.format(name))
+ reply = prolog.engine.create(
+ code=code,
+ query='run_tests({})'.format(name))
return reply.get('event') == 'success'
except Exception as ex:
return False