- increse timeouts and fixes
authorSree Harsha Totakura <totakura@in.tum.de>
Fri, 9 Nov 2012 22:58:48 +0000 (22:58 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Fri, 9 Nov 2012 22:58:48 +0000 (22:58 +0000)
src/testbed/test_testbed_api_controllerlink.c
src/testbed/test_testbed_api_testbed_run.c
src/testbed/test_testbed_api_topology.c
src/testbed/test_testbed_api_topology_clique.c

index 78a9b8a93f17c5d8f6ae752610a509f8d1bcc0d9..da9fd000b8650a1b5e66f13a76d9a80ea7dfa8c0 100644 (file)
@@ -166,9 +166,9 @@ enum Stage
   SLAVE3_LINK_SUCCESS,
 
   /**
-   * Destory master peer
+   * Destory master peer and mark test as success
    */
-  MASTER_PEER_DESTROY_SUCCESS
+  SUCCESS
 
 };
 
@@ -538,7 +538,7 @@ controller_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event)
     break;
  case SLAVE3_LINK_SUCCESS:
    check_operation_success (event);
-   result = MASTER_PEER_DESTROY_SUCCESS;
+   result = SUCCESS;
    GNUNET_TESTBED_operation_done (op);
    op = NULL;       
    GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
@@ -653,7 +653,7 @@ run (void *cls, char *const *args, const char *cfgfile,
                    "Unable to run the test as this system is not configured "
                    "to use password less SSH logins to localhost.\n"
                    "Marking test as successful\n");
-    result = SLAVE3_LINK_SUCCESS;
+    result = SUCCESS;
     return;
   }
   cfg = GNUNET_CONFIGURATION_dup (config);
@@ -686,7 +686,7 @@ main (int argc, char **argv)
       GNUNET_PROGRAM_run ((sizeof (argv2) / sizeof (char *)) - 1, argv2,
                           "test_testbed_api_controllerlink", "nohelp", options,
                           &run, NULL);
-  if ((GNUNET_OK != ret) || (MASTER_PEER_DESTROY_SUCCESS != result))
+  if ((GNUNET_OK != ret) || (SUCCESS != result))
     return 1;
   return 0;
 }
index ceb977bb28e4e608e3851848f79e76c7b1a36dda..2559523e69896cddefa7271a55973a37f476c3f1 100644 (file)
@@ -156,7 +156,7 @@ run (void *cls, char *const *args, const char *cfgfile,
                       NULL, &master_task, NULL);
   abort_task =
       GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
-                                    (GNUNET_TIME_UNIT_SECONDS, 60), &do_abort,
+                                    (GNUNET_TIME_UNIT_SECONDS, 300), &do_abort,
                                     NULL);
 }
 
index af3890ea569910e589fe80f29154a997d40807ab..f456c49c721753e02d653e507d4d0b10d5424c87 100644 (file)
@@ -139,7 +139,7 @@ test_master (void *cls, unsigned int num_peers,
                                                   NUM_PEERS, GNUNET_TESTBED_TOPOLOGY_OPTION_END);
   GNUNET_assert (NULL != op);
   shutdown_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
-                                                (GNUNET_TIME_UNIT_SECONDS, 120),
+                                                (GNUNET_TIME_UNIT_SECONDS, 300),
                                                 do_shutdown, NULL);
 }
 
index f1330277b13a0d28ec09f242de718babf80f9a70..34afae883e51a472aecc4bec2fbfbdff69e0990c 100644 (file)
@@ -141,7 +141,7 @@ test_master (void *cls, unsigned int num_peers,
                                                   GNUNET_TESTBED_TOPOLOGY_OPTION_END);
   GNUNET_assert (NULL != op);
   shutdown_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
-                                                (GNUNET_TIME_UNIT_SECONDS, 120),
+                                                (GNUNET_TIME_UNIT_SECONDS, 300),
                                                 do_shutdown, NULL);
 }