mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
tests: Speed up the GIO actions test
Reduce the number of iterations of things sent over a mock session bus from different threads, to avoid the test spending quite so long contested over the `gsignal.c` lock. The test now takes about 10 seconds, according to `time`, rather than around 100 or longer. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
51c3921022
commit
c8d479d8b2
@ -890,7 +890,7 @@ do_export (gpointer data)
|
||||
bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
|
||||
path = g_strdup_printf("/%p", data);
|
||||
|
||||
for (i = 0; i < 100000; i++)
|
||||
for (i = 0; i < 10000; i++)
|
||||
{
|
||||
id = g_dbus_connection_export_action_group (bus, path, G_ACTION_GROUP (group), &error);
|
||||
g_assert_no_error (error);
|
||||
|
Loading…
Reference in New Issue
Block a user