summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-01-11 07:41:01 +0000
committerRoger Dingledine <arma@torproject.org>2004-01-11 07:41:01 +0000
commitb669b1d57c62c7466bcbc5bdead0508dd0a27472 (patch)
tree1b490b17ab780430f7a6587f303a542e8090faf1 /src/or/test.c
parent1a137c266ad979aae1c5a934cce1404b03b6447e (diff)
downloadtor-b669b1d57c62c7466bcbc5bdead0508dd0a27472.tar.gz
tor-b669b1d57c62c7466bcbc5bdead0508dd0a27472.zip
oh, and make it compile
still need to make a decision about per-connection rate limiting (take it out? update it?) svn:r984
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 34fe2d6925..5f493d9e78 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -554,7 +554,7 @@ test_dir_format()
r1.onion_pkey = pk1;
r1.identity_pkey = pk2;
r1.link_pkey = pk3;
- r1.bandwidth = 1000;
+ r1.bandwidthrate = r1.bandwidthburst = 1000;
r1.exit_policy = NULL;
r1.nickname = "Magri";
@@ -578,7 +578,7 @@ test_dir_format()
r2.onion_pkey = pk2;
r2.identity_pkey = pk1;
r2.link_pkey = pk2;
- r2.bandwidth = 3000;
+ r2.bandwidthrate = r2.bandwidthburst = 3000;
r2.exit_policy = &ex1;
test_assert(!crypto_pk_write_public_key_to_string(pk1, &pk1_str,
@@ -615,7 +615,8 @@ test_dir_format()
test_eq(rp1->or_port, r1.or_port);
test_eq(rp1->socks_port, r1.socks_port);
test_eq(rp1->dir_port, r1.dir_port);
- test_eq(rp1->bandwidth, r1.bandwidth);
+ test_eq(rp1->bandwidthrate, r1.bandwidthrate);
+// test_eq(rp1->bandwidthburst, r1.bandwidthburst);
test_assert(crypto_pk_cmp_keys(rp1->onion_pkey, pk1) == 0);
test_assert(crypto_pk_cmp_keys(rp1->link_pkey, pk3) == 0);
test_assert(crypto_pk_cmp_keys(rp1->identity_pkey, pk2) == 0);