forked from p15670423/monkey
Tests: Remove unnecessary sleep(1)
This commit is contained in:
parent
81f7de74ab
commit
e12bc7ac28
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue