From 78ead844f692faca1508ebcba27ca12e496bc79b Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 21 Oct 2011 09:22:52 +0000 Subject: [PATCH] Wait more to complete tests on slower machines --- src/mesh/test_mesh_small.c | 12 +++++++++++- src/mesh/test_mesh_small.conf | 6 +++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c index 1cb9d6181..f100a40e4 100644 --- a/src/mesh/test_mesh_small.c +++ b/src/mesh/test_mesh_small.c @@ -55,7 +55,7 @@ struct StatsContext /** * Time to wait for stuff that should be rather fast */ -#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) +#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) /** * DIFFERENT TESTS TO RUN @@ -883,6 +883,16 @@ main (int argc, char *argv[]) #endif NULL }; + + /* Each peer is supposed to generate the following callbacks: + * 1 incoming tunnel (@dest) + * 1 connected peer (@orig) + * 1 received data packet (@dest) + * 1 received data packet (@orig) + * 1 received tunnel destroy (@dest) + * _________________________________ + * 5 x ok expected per peer + */ int ok_goal; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: Start\n"); diff --git a/src/mesh/test_mesh_small.conf b/src/mesh/test_mesh_small.conf index 90bae9ab2..f98dca7dc 100644 --- a/src/mesh/test_mesh_small.conf +++ b/src/mesh/test_mesh_small.conf @@ -40,8 +40,8 @@ INTERNAL_ADDRESS = 127.0.0.1 EXTERNAL_ADDRESS = 127.0.0.1 [core] -TOTAL_QUOTA_IN = 4000000 -TOTAL_QUOTA_OUT = 4000000 +TOTAL_QUOTA_IN = 99111999 +TOTAL_QUOTA_OUT = 99111999 AUTOSTART = YES PORT = 10003 @@ -85,6 +85,6 @@ MAX_OUTSTANDING_CONNECTIONS = 75 DELETE_FILES = YES [test_mesh_small] -WAIT_TIME = 90 +WAIT_TIME = 300 CONNECTION_LIMIT = 16 DATA_OUTPUT_FILE=data_output -- 2.25.1