aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-08-31 06:14:37 +0000
committerRoger Dingledine <arma@torproject.org>2005-08-31 06:14:37 +0000
commit711cad94ed8c5b11d9af62b0a28971eaf5a04d85 (patch)
tree862f4b312f34b60d792e33113c5a54a513b0cc53 /src/or/test.c
parent0b92c28d84c1e0ac30a6b21e0189b4968961e008 (diff)
downloadtor-711cad94ed8c5b11d9af62b0a28971eaf5a04d85.tar
tor-711cad94ed8c5b11d9af62b0a28971eaf5a04d85.tar.gz
when we think a router is unreachable, pass the message back to the
server's logs, and make it a 'warn'. also, fix a memory leak for rejected router descriptors. svn:r4889
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 3ba9a7fcf..e10a14926 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1294,9 +1294,9 @@ test_dir_format(void)
r1.published_on = time(NULL);
r2.published_on = time(NULL)-3*60*60;
test_assert(router_dump_router_to_string(buf, 2048, &r1, pk2)>0);
- test_eq(dirserv_add_descriptor(buf,&m), 1);
+ test_eq(dirserv_add_descriptor(buf,&m), 2);
test_assert(router_dump_router_to_string(buf, 2048, &r2, pk1)>0);
- test_eq(dirserv_add_descriptor(buf,&m), 1);
+ test_eq(dirserv_add_descriptor(buf,&m), 2);
get_options()->Nickname = tor_strdup("DirServer");
test_assert(!dirserv_dump_directory_to_string(&cp,pk3));
test_assert(!router_parse_routerlist_from_directory(cp, &dir1, pk3, 1, 0));