mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
tests: Set appropriate timeouts for a couple of tests
sync-playback just had a much longer timeout than it should have, and extended-test was using the default. We set the expected amount of time, so the test is more correct (if it takes longer than this, something probably actually broke).
This commit is contained in:
parent
daf326a9e4
commit
3e0c30622b
2 changed files with 4 additions and 1 deletions
|
|
@ -209,6 +209,8 @@ int main(int argc, char *argv[]) {
|
|||
s = suite_create("Extended");
|
||||
tc = tcase_create("extended");
|
||||
tcase_add_test(tc, extended_test);
|
||||
/* 4s of audio, 0.5s grace time */
|
||||
tcase_set_timeout(tc, 4.5);
|
||||
suite_add_tcase(s, tc);
|
||||
|
||||
sr = srunner_create(s);
|
||||
|
|
|
|||
|
|
@ -206,7 +206,8 @@ int main(int argc, char *argv[]) {
|
|||
s = suite_create("Sync Playback");
|
||||
tc = tcase_create("syncplayback");
|
||||
tcase_add_test(tc, sync_playback_test);
|
||||
tcase_set_timeout(tc, 5 * 60);
|
||||
/* 4s of audio, 0.5s grace time */
|
||||
tcase_set_timeout(tc, 4.5);
|
||||
suite_add_tcase(s, tc);
|
||||
|
||||
sr = srunner_create(s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue