aboutsummaryrefslogtreecommitdiff
path: root/src/stream/test_stream_2peers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream/test_stream_2peers.c')
-rw-r--r--src/stream/test_stream_2peers.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/stream/test_stream_2peers.c b/src/stream/test_stream_2peers.c
index 9eff08af4..012643980 100644
--- a/src/stream/test_stream_2peers.c
+++ b/src/stream/test_stream_2peers.c
@@ -101,11 +101,6 @@ struct PeerData
101enum SetupState 101enum SetupState
102{ 102{
103 /** 103 /**
104 * The initial state
105 */
106 INIT,
107
108 /**
109 * Get the identity of peer 1 104 * Get the identity of peer 1
110 */ 105 */
111 PEER1_GET_IDENTITY, 106 PEER1_GET_IDENTITY,
@@ -600,15 +595,6 @@ controller_event_cb (void *cls,
600{ 595{
601 switch (event->type) 596 switch (event->type)
602 { 597 {
603 case GNUNET_TESTBED_ET_CONNECT:
604 GNUNET_assert (INIT == setup_state);
605 GNUNET_TESTBED_operation_done (op);
606 /* Get the peer identity and configuration of peers */
607 op = GNUNET_TESTBED_peer_get_information (peer1.peer,
608 GNUNET_TESTBED_PIT_IDENTITY,
609 &peerinfo_cb, NULL);
610 setup_state = PEER1_GET_IDENTITY;
611 break;
612 case GNUNET_TESTBED_ET_OPERATION_FINISHED: 598 case GNUNET_TESTBED_ET_OPERATION_FINISHED:
613 switch (setup_state) 599 switch (setup_state)
614 { 600 {
@@ -642,8 +628,11 @@ test_master (void *cls, unsigned int num_peers,
642 GNUNET_assert (NULL != peers[1]); 628 GNUNET_assert (NULL != peers[1]);
643 peer1.peer = peers[0]; 629 peer1.peer = peers[0];
644 peer2.peer = peers[1]; 630 peer2.peer = peers[1];
645 op = GNUNET_TESTBED_overlay_connect (NULL, NULL, NULL, peer2.peer, peer1.peer); 631 /* Get the peer identity and configuration of peers */
646 setup_state = INIT; 632 op = GNUNET_TESTBED_peer_get_information (peer1.peer,
633 GNUNET_TESTBED_PIT_IDENTITY,
634 &peerinfo_cb, NULL);
635 setup_state = PEER1_GET_IDENTITY;
647 abort_task = 636 abort_task =
648 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply 637 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
649 (GNUNET_TIME_UNIT_SECONDS, 40), &do_abort, 638 (GNUNET_TIME_UNIT_SECONDS, 40), &do_abort,
@@ -660,7 +649,6 @@ int main (int argc, char **argv)
660 649
661 result = GNUNET_NO; 650 result = GNUNET_NO;
662 event_mask = 0; 651 event_mask = 0;
663 event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT);
664 event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED); 652 event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED);
665 (void) GNUNET_TESTBED_test_run ("test_stream_2peers", 653 (void) GNUNET_TESTBED_test_run ("test_stream_2peers",
666 "test_stream_local.conf", 654 "test_stream_local.conf",