mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
exp: use individual q for timeout dependent tests
This commit is contained in:
committed by
Peter Rowlands (변기호)
parent
cd2c4d0caf
commit
f8bbf20b77
@@ -49,10 +49,10 @@ def test_shutdown_with_kill(test_queue, mocker):
|
||||
)
|
||||
|
||||
|
||||
def test_post_run_after_kill(session_queue):
|
||||
def test_post_run_after_kill(test_queue):
|
||||
from celery import chain
|
||||
|
||||
sig_bar = session_queue.proc.run_signature(
|
||||
sig_bar = test_queue.proc.run_signature(
|
||||
["python3", "-c", "import time; time.sleep(10)"], name="bar"
|
||||
)
|
||||
sig_bar.freeze()
|
||||
@@ -65,7 +65,7 @@ def test_post_run_after_kill(session_queue):
|
||||
|
||||
while True:
|
||||
try:
|
||||
session_queue.proc.kill("bar")
|
||||
test_queue.proc.kill("bar")
|
||||
assert result_foo.status == "PENDING"
|
||||
break
|
||||
except ProcessLookupError:
|
||||
|
||||
Reference in New Issue
Block a user