aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_testing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/test_testing.c')
-rw-r--r--src/testing/test_testing.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testing/test_testing.c b/src/testing/test_testing.c
index b33f3ee1b..9d8efe3f8 100644
--- a/src/testing/test_testing.c
+++ b/src/testing/test_testing.c
@@ -26,6 +26,8 @@
26 26
27#define VERBOSE GNUNET_NO 27#define VERBOSE GNUNET_NO
28 28
29#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60)
30
29static int ok; 31static int ok;
30 32
31static void 33static void
@@ -56,7 +58,7 @@ my_cb (void *cls,
56 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 58 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
57 "Daemon `%s' started, will now stop it.\n", GNUNET_i2s (id)); 59 "Daemon `%s' started, will now stop it.\n", GNUNET_i2s (id));
58#endif 60#endif
59 GNUNET_TESTING_daemon_stop (d, &end_cb, NULL, GNUNET_YES); 61 GNUNET_TESTING_daemon_stop (d, TIMEOUT, &end_cb, NULL, GNUNET_YES);
60} 62}
61 63
62 64
@@ -72,7 +74,7 @@ run (void *cls,
72#if VERBOSE 74#if VERBOSE
73 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting daemon.\n"); 75 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting daemon.\n");
74#endif 76#endif
75 d = GNUNET_TESTING_daemon_start (sched, cfg, NULL, NULL, NULL, &my_cb, NULL); 77 d = GNUNET_TESTING_daemon_start (sched, cfg, TIMEOUT, NULL, NULL, NULL, &my_cb, NULL);
76 GNUNET_assert (d != NULL); 78 GNUNET_assert (d != NULL);
77} 79}
78 80