From e12bc7ac2846e1d8ee55d4e2308d7311a7cef568 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 19 Jul 2021 07:46:29 -0400 Subject: [PATCH] Tests: Remove unnecessary sleep(1) --- monkey/tests/unit_tests/monkey_island/cc/models/test_monkey.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/models/test_monkey.py b/monkey/tests/unit_tests/monkey_island/cc/models/test_monkey.py index 2df8be4dd..90fd9032a 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/models/test_monkey.py +++ b/monkey/tests/unit_tests/monkey_island/cc/models/test_monkey.py @@ -1,6 +1,5 @@ import logging import uuid -from time import sleep import pytest @@ -24,9 +23,9 @@ class TestMonkey: mia_monkey_ttl.save() mia_monkey = Monkey(guid=str(uuid.uuid4()), dead=False, ttl_ref=mia_monkey_ttl.id) mia_monkey.save() + # Emulate timeout - ttl is manually deleted here, since we're using mongomock and not a # real mongo instance. - sleep(1) mia_monkey_ttl.delete() dead_monkey = Monkey(guid=str(uuid.uuid4()), dead=True)