Commit 5bc66df8 by Nicolas Wavrant

resiliencytest: trivial code fix

1 parent a411a3c0
......@@ -232,9 +232,7 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
resource='setCurrentProject',
data='path=workspace/slapos/software/%s/' % software_release
)
if json.loads(data)['code'] == 0:
self.logger.warning(data['result'])
raise IOError(data['result'])
assert json.loads(data)['code'] != 0, 'Unexpecting result in call to setCurrentProject: %s' % data
def generateData(self):
"""
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!