tests: Increase a timeout in contexts test

The timeout is just to stop the test hanging forever, so there’s no need
for it to be so short. It’s caused at least one spurious CI failure:
https://gitlab.gnome.org/GNOME/glib/-/jobs/2445023.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #2837
This commit is contained in:
Philip Withnall 2022-12-13 14:07:58 +00:00
parent 7bb0261407
commit cad9256c3d

View File

@ -81,7 +81,7 @@ idle_start_test1_thread (gpointer loop)
g_mutex_lock (&test1_mutex);
thread = g_thread_new ("test1", test1_thread, NULL);
time = g_get_monotonic_time () + 2 * G_TIME_SPAN_SECOND;
time = g_get_monotonic_time () + 20 * G_TIME_SPAN_SECOND;
while (!test1_done)
{
io_completed = g_cond_wait_until (&test1_cond, &test1_mutex, time);