diff options
Diffstat (limited to 'src/testbed/test_testbed_api_controllerlink.c')
-rw-r--r-- | src/testbed/test_testbed_api_controllerlink.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/testbed/test_testbed_api_controllerlink.c b/src/testbed/test_testbed_api_controllerlink.c index c60b8227e..471ab3a94 100644 --- a/src/testbed/test_testbed_api_controllerlink.c +++ b/src/testbed/test_testbed_api_controllerlink.c | |||
@@ -181,7 +181,12 @@ enum Stage | |||
181 | SLAVE3_LINK_SUCCESS, | 181 | SLAVE3_LINK_SUCCESS, |
182 | 182 | ||
183 | /** | 183 | /** |
184 | * Destory master peer and mark test as success | 184 | * Master peer destoryed. Destory slave 3 peer |
185 | */ | ||
186 | MASTER_PEER_DESTROY_SUCCESS, | ||
187 | |||
188 | /** | ||
189 | * Slave 3 peer destroyed. Mark test as success | ||
185 | */ | 190 | */ |
186 | SUCCESS, | 191 | SUCCESS, |
187 | 192 | ||
@@ -631,6 +636,11 @@ controller_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event) | |||
631 | break; | 636 | break; |
632 | case SLAVE3_LINK_SUCCESS: | 637 | case SLAVE3_LINK_SUCCESS: |
633 | check_operation_success (event); | 638 | check_operation_success (event); |
639 | result = MASTER_PEER_DESTROY_SUCCESS; | ||
640 | GNUNET_TESTBED_operation_done (op); | ||
641 | op = GNUNET_TESTBED_peer_destroy (slave3_peer); | ||
642 | break; | ||
643 | case MASTER_PEER_DESTROY_SUCCESS: | ||
634 | result = SUCCESS; | 644 | result = SUCCESS; |
635 | GNUNET_TESTBED_operation_done (op); | 645 | GNUNET_TESTBED_operation_done (op); |
636 | op = NULL; | 646 | op = NULL; |