summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/thread-mainloop-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/thread-mainloop-test.c b/src/tests/thread-mainloop-test.c
index 24e18b37..1434deb9 100644
--- a/src/tests/thread-mainloop-test.c
+++ b/src/tests/thread-mainloop-test.c
@@ -63,7 +63,7 @@ int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) {
pa_threaded_mainloop_unlock(m);
fprintf(stderr, "waiting 5s (sleep)\n");
- sleep(5);
+ pa_msleep(5000);
fprintf(stderr, "shutting down\n");