mirror of
https://github.com/beetbox/beets.git
synced 2026-02-08 08:25:23 +01:00
refactor the test methods to avoid sleepy test or should consider comment the sleep command
This commit is contained in:
parent
3045550368
commit
dcad94d2c6
1 changed files with 2 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ import tempfile
|
|||
import threading
|
||||
import time
|
||||
import unittest
|
||||
import asyncio
|
||||
from contextlib import contextmanager
|
||||
|
||||
# Mock GstPlayer so that the forked process doesn't attempt to import gi:
|
||||
|
|
@ -549,7 +550,7 @@ class BPDQueryTest(BPDTestHelper):
|
|||
# Manually send a command without reading a response.
|
||||
request = client.serialise_command("idle")
|
||||
client.sock.sendall(request)
|
||||
time.sleep(0.01)
|
||||
asyncio.sleep(0.01)
|
||||
response = client.send_command("noidle")
|
||||
self._assert_ok(response)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue