[gcr/wip/smcv/timeout: 2/2] Increase test-gnupg-collection timeout




commit 006f04ce05c41c9ebf78a02c94adad3f32919fbc
Author: Emilio Pozuelo Monfort <pochu debian org>
Date:   Sun Feb 5 10:28:11 2017 +0000

    Increase test-gnupg-collection timeout
    
    The timeout length in the current test is too low and can make the test
    fail if the system is too slow or too loaded. This test correctly stops
    waiting when a result is received, so the timeout will not actually be
    reached unless there is a problem.
    
    [smcv: Expand commit message]
    Fixes: https://gitlab.gnome.org/GNOME/gcr/issues/29
    Bug-Debian: https://bugs.debian.org/846728
    Signed-off-by: Simon McVittie <smcv debian org>

 gcr/test-gnupg-collection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gcr/test-gnupg-collection.c b/gcr/test-gnupg-collection.c
index e8b9cba..e65900a 100644
--- a/gcr/test-gnupg-collection.c
+++ b/gcr/test-gnupg-collection.c
@@ -210,7 +210,7 @@ test_reload (Test *test, gconstpointer unused)
        GcrGnupgKey *key;
 
        _gcr_gnupg_collection_load_async (test->collection, NULL, on_async_ready, test);
-       egg_test_wait_until (2500);
+       egg_test_wait_until (500000);
        g_assert (test->result);
        _gcr_gnupg_collection_load_finish (test->collection, test->result, &error);
        g_assert_no_error (error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]