Tests: Remove unnecessary sleep(1)

This commit is contained in:
Mike Salvatore 2021-07-19 07:46:29 -04:00
parent 81f7de74ab
commit e12bc7ac28
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
import logging import logging
import uuid import uuid
from time import sleep
import pytest import pytest
@ -24,9 +23,9 @@ class TestMonkey:
mia_monkey_ttl.save() mia_monkey_ttl.save()
mia_monkey = Monkey(guid=str(uuid.uuid4()), dead=False, ttl_ref=mia_monkey_ttl.id) mia_monkey = Monkey(guid=str(uuid.uuid4()), dead=False, ttl_ref=mia_monkey_ttl.id)
mia_monkey.save() mia_monkey.save()
# Emulate timeout - ttl is manually deleted here, since we're using mongomock and not a # Emulate timeout - ttl is manually deleted here, since we're using mongomock and not a
# real mongo instance. # real mongo instance.
sleep(1)
mia_monkey_ttl.delete() mia_monkey_ttl.delete()
dead_monkey = Monkey(guid=str(uuid.uuid4()), dead=True) dead_monkey = Monkey(guid=str(uuid.uuid4()), dead=True)