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 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)