diff options
author | Roger Dingledine <arma@torproject.org> | 2005-08-31 06:14:37 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-08-31 06:14:37 +0000 |
commit | 711cad94ed8c5b11d9af62b0a28971eaf5a04d85 (patch) | |
tree | 862f4b312f34b60d792e33113c5a54a513b0cc53 /src/or/test.c | |
parent | 0b92c28d84c1e0ac30a6b21e0189b4968961e008 (diff) | |
download | tor-711cad94ed8c5b11d9af62b0a28971eaf5a04d85.tar.gz tor-711cad94ed8c5b11d9af62b0a28971eaf5a04d85.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c index 3ba9a7fcfa..e10a149263 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)); |