BB: Use put_json() to reset the Island's mode

This commit is contained in:
Mike Salvatore 2022-08-05 09:35:14 -04:00
parent 3362959c73
commit 16d5a74df6
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class MonkeyIslandClient(object):
assert False assert False
def _reset_island_mode(self): def _reset_island_mode(self):
if self.requests.put("api/island/mode", data='"unset"').ok: if self.requests.put_json("api/island/mode", json="unset").ok:
LOGGER.info("Resetting island mode after the test.") LOGGER.info("Resetting island mode after the test.")
else: else:
LOGGER.error("Failed to reset island mode") LOGGER.error("Failed to reset island mode")