summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-01-06 20:11:52 +0000
committerNick Mathewson <nickm@torproject.org>2005-01-06 20:11:52 +0000
commit91bafc476ef1e5a6e51c61d4a2b1c206af628ffc (patch)
tree3de6b89854752ea21941288e3b564ed77f699350 /src/or/test.c
parentf8b517fa9783b2445667d0bb23c22b719e7a428e (diff)
downloadtor-91bafc476ef1e5a6e51c61d4a2b1c206af628ffc.tar.gz
tor-91bafc476ef1e5a6e51c61d4a2b1c206af628ffc.zip
Fix a fun bug: do not rewrite a cached directory back to the cache; otherwise we will think it is recent and not fetch a newer one.
svn:r3319
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 01e1cc2dd3..3a5d079faf 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1161,7 +1161,7 @@ test_dir_format(void)
test_eq(dirserv_add_descriptor((const char**)&cp), 1);
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));
+ test_assert(!router_parse_routerlist_from_directory(cp, &dir1, pk3, 1, 0));
test_eq(2, smartlist_len(dir1->routers));
dirserv_free_fingerprint_list();
tor_free(cp);