diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-29 12:01:31 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-10-29 12:01:31 +0000 |
commit | d028f7bccb02874f92c60127c5dbd90112a79202 (patch) | |
tree | 665cdfebcf97461a8651c3b807b7876e9609a7d4 /src/transport/test_quota_compliance.c | |
parent | 6aac05fa79f97bb8826849a6784c11c0d76d1eba (diff) | |
download | gnunet-d028f7bccb02874f92c60127c5dbd90112a79202.tar.gz gnunet-d028f7bccb02874f92c60127c5dbd90112a79202.zip |
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-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); |