Removes duplicate test

This commit is contained in:
Ilan Steemers
2016-01-09 13:42:13 +01:00
parent 36d3cb80a5
commit 8b27cdae17

View File

@@ -263,23 +263,6 @@ def test_timeout(broker):
broker.delete_queue()
@pytest.mark.django_db
def test_timeout(broker):
# set up the Sentinel
broker.list_key = 'timeout_test:q'
broker.purge_queue()
async('django_q.tests.tasks.count_forever', broker=broker)
start_event = Event()
stop_event = Event()
# Set a timer to stop the Sentinel
threading.Timer(3, stop_event.set).start()
s = Sentinel(stop_event, start_event, broker=broker, timeout=1)
assert start_event.is_set()
assert s.status() == Conf.STOPPED
assert s.reincarnations == 1
broker.delete_queue()
@pytest.mark.django_db
def test_timeout_override(broker):
# set up the Sentinel