1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 08:56:17 +00:00

Try to fix flaky test

Closes #229
This commit is contained in:
Alban Féron 2022-01-30 17:00:32 +01:00
parent e11e775baf
commit 8d6821df99
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165

View File

@ -1,7 +1,7 @@
# This file is part of Supysonic.
# Supysonic is a Python implementation of the Subsonic server API.
#
# Copyright (C) 2017-2020 Alban 'spl0k' Féron
# Copyright (C) 2017-2022 Alban 'spl0k' Féron
#
# Distributed under terms of the GNU AGPLv3 license.
@ -113,6 +113,8 @@ class AudioWatcherTestCase(WatcherTestCase):
def test_add_nowait_stop(self):
self._addfile()
# Add a small delay (< wait_delay) so wathdog can pick up that a file was added
time.sleep(0.1)
self._stop()
self.assertTrackCountEqual(1)