summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHan Wang <freddie.wanah@gmail.com>2024-04-20 21:33:35 +0100
committerHan Wang <freddie.wanah@gmail.com>2024-04-20 21:33:35 +0100
commitf46bbbdb6000d20f0db2603de4f87f00e0fe6e43 (patch)
tree08487dba07e51c90ed3753ac8e9fdb706aa2d180
parente2cef11249975872ea2df8bfa53b70526cc723dc (diff)
Revert back to time.sleep
Signed-off-by: Han Wang <freddie.wanah@gmail.com>
-rw-r--r--test/plugins/test_player.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/plugins/test_player.py b/test/plugins/test_player.py
index f10b616bc..eb38e9afc 100644
--- a/test/plugins/test_player.py
+++ b/test/plugins/test_player.py
@@ -15,7 +15,6 @@
"""Tests for BPD's implementation of the MPD protocol.
"""
-import asyncio
import importlib.util
import multiprocessing as mp
import os
@@ -23,6 +22,7 @@ import socket
import sys
import tempfile
import threading
+import time
import unittest
from contextlib import contextmanager
@@ -549,7 +549,7 @@ class BPDQueryTest(BPDTestHelper):
# Manually send a command without reading a response.
request = client.serialise_command("idle")
client.sock.sendall(request)
- asyncio.sleep(0.01)
+ time.sleep(0.01)
response = client.send_command("noidle")
self._assert_ok(response)