From 16d5a74df6f436a6287e3b255b22512e8c7fb94f Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Fri, 5 Aug 2022 09:35:14 -0400 Subject: [PATCH] BB: Use put_json() to reset the Island's mode --- envs/monkey_zoo/blackbox/island_client/monkey_island_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py index f16cca318..8cadac06e 100644 --- a/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py +++ b/envs/monkey_zoo/blackbox/island_client/monkey_island_client.py @@ -120,7 +120,7 @@ class MonkeyIslandClient(object): assert False 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.") else: LOGGER.error("Failed to reset island mode")