tests: reduce duration of ecore_test_ecore_main_loop_timer test

Summary:
fix T6852
Depends on D5890

Reviewers: stefan_schmidt

Subscribers: cedric

Maniphest Tasks: T6852

Differential Revision: https://phab.enlightenment.org/D5891
This commit is contained in:
Mike Blumenkrantz 2018-04-09 13:36:58 +02:00 committed by Stefan Schmidt
parent f810e0a3ba
commit 94d0aae906
1 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ EFL_START_TEST(ecore_test_ecore_main_loop_timer)
double start, end, elapsed;
timer = ecore_timer_add(2.0, _quit_cb, &did);
timer = ecore_timer_add(0.1, _quit_cb, &did);
fail_if(timer == NULL);
start = ecore_time_get();
@ -133,8 +133,8 @@ EFL_START_TEST(ecore_test_ecore_main_loop_timer)
elapsed = end - start;
fail_if(did == EINA_FALSE);
fail_if(elapsed < 2.0);
fail_if(elapsed > 3.0); /* 1 second "error margin" */
fail_if(elapsed < 0.05);
fail_if(elapsed > 0.15); /* .05 second "error margin" */
}
EFL_END_TEST