diff options
-rw-r--r-- | src/transport/test_quota_compliance.c | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index 88e47d7d3..5a41f20ca 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c | |||
@@ -578,8 +578,34 @@ run (void *cls, | |||
578 | send_running = GNUNET_NO; | 578 | send_running = GNUNET_NO; |
579 | recv_running = GNUNET_NO; | 579 | recv_running = GNUNET_NO; |
580 | 580 | ||
581 | setup_peer (&p1, "test_quota_compliance_peer1.conf"); | 581 | |
582 | setup_peer (&p2, "test_quota_compliance_peer2.conf"); | 582 | if (is_tcp) |
583 | { | ||
584 | setup_peer (&p1, "test_quota_compliance_peer1.conf"); | ||
585 | setup_peer (&p2, "test_quota_compliance_peer2.conf"); | ||
586 | } | ||
587 | else if (is_http) | ||
588 | { | ||
589 | setup_peer (&p1, "test_quota_compliance_peer1.conf"); | ||
590 | setup_peer (&p2, "test_quota_compliance_peer2.conf"); | ||
591 | } | ||
592 | else if (is_https) | ||
593 | { | ||
594 | setup_peer (&p1, "test_quota_compliance_peer1.conf"); | ||
595 | setup_peer (&p2, "test_quota_compliance_peer2.conf"); | ||
596 | } | ||
597 | else if (is_udp) | ||
598 | { | ||
599 | setup_peer (&p1, "test_quota_compliance_peer1.conf"); | ||
600 | setup_peer (&p2, "test_quota_compliance_peer2.conf"); | ||
601 | } | ||
602 | else if (is_tcp_nat) | ||
603 | { | ||
604 | setup_peer (&p1, "test_quota_compliance_peer1.conf"); | ||
605 | setup_peer (&p2, "test_quota_compliance_peer2.conf"); | ||
606 | } | ||
607 | else | ||
608 | GNUNET_assert (0); | ||
583 | 609 | ||
584 | GNUNET_assert(p1.th != NULL); | 610 | GNUNET_assert(p1.th != NULL); |
585 | GNUNET_assert(p2.th != NULL); | 611 | GNUNET_assert(p2.th != NULL); |