summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-12-07 11:02:27 -0500
committerNick Mathewson <nickm@torproject.org>2012-12-07 11:02:27 -0500
commit025dc19b63ce043d89e9f94743d0f74dd9d4e879 (patch)
treebd0c597935162dec673e842ae3ae8746591e6017 /src/test
parentf4f7e7a6f8a59fee532c5eca4cb71f2b28b5a1ad (diff)
parentc35fad2bdef47f2063ccc989cac99b154e2ee36e (diff)
downloadtor-025dc19b63ce043d89e9f94743d0f74dd9d4e879.tar.gz
tor-025dc19b63ce043d89e9f94743d0f74dd9d4e879.zip
Merge remote-tracking branch 'public/bug6887'
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_dir.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 9bf44b116b..ff41bf2f3f 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -223,24 +223,6 @@ test_dir_formats(void)
add_fingerprint_to_dir("Fred", buf, fingerprint_list);
}
- {
- char d[DIGEST_LEN];
- const char *m;
- /* XXXX NM re-enable. */
- /* Make sure routers aren't too far in the past any more. */
- r1->cache_info.published_on = time(NULL);
- r2->cache_info.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,""), ROUTER_ADDED_NOTIFY_GENERATOR);
- test_assert(router_dump_router_to_string(buf, 2048, r2, pk1)>0);
- test_eq(dirserv_add_descriptor(buf,&m,""), ROUTER_ADDED_NOTIFY_GENERATOR);
- get_options()->Nickname = tor_strdup("DirServer");
- test_assert(!dirserv_dump_directory_to_string(&cp,pk3, 0));
- crypto_pk_get_digest(pk3, d);
- test_assert(!router_parse_directory(cp));
- test_eq(2, smartlist_len(dir1->routers));
- tor_free(cp);
- }
#endif
dirserv_free_fingerprint_list();