diff options
author | Roger Dingledine <arma@torproject.org> | 2012-01-08 10:03:46 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2012-01-08 10:03:46 -0500 |
commit | 78e95b7b713c15b40303d63b96dbf9a8070b6cf7 (patch) | |
tree | 98422e1332044a9cf454dd491131b926d8d1cd3d /src/test | |
parent | 1416dd47a994fb9f3ff5108be8517270352c9699 (diff) | |
download | tor-78e95b7b713c15b40303d63b96dbf9a8070b6cf7.tar.gz tor-78e95b7b713c15b40303d63b96dbf9a8070b6cf7.zip |
tell me who votes are actually for, not just where they're from
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_dir.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 8fd94289a9..873d761a99 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -1207,9 +1207,11 @@ test_dir_v3_networkstatus(void) /* Try adding it to con2. */ detached_text2 = get_detached_sigs(con2,con_md2); - test_eq(1, networkstatus_add_detached_signatures(con2, dsig1, &msg)); + test_eq(1, networkstatus_add_detached_signatures(con2, dsig1, "test", + LOG_INFO, &msg)); tor_free(detached_text2); - test_eq(1, networkstatus_add_detached_signatures(con_md2, dsig1, &msg)); + test_eq(1, networkstatus_add_detached_signatures(con_md2, dsig1, "test", + LOG_INFO, &msg)); tor_free(detached_text2); detached_text2 = get_detached_sigs(con2,con_md2); //printf("\n<%s>\n", detached_text2); @@ -1230,10 +1232,12 @@ test_dir_v3_networkstatus(void) "microdesc"))); /* Try adding to con2 twice; verify that nothing changes. */ - test_eq(0, networkstatus_add_detached_signatures(con2, dsig1, &msg)); + test_eq(0, networkstatus_add_detached_signatures(con2, dsig1, "test", + LOG_INFO, &msg)); /* Add to con. */ - test_eq(2, networkstatus_add_detached_signatures(con, dsig2, &msg)); + test_eq(2, networkstatus_add_detached_signatures(con, dsig2, "test", + LOG_INFO, &msg)); /* Check signatures */ voter = smartlist_get(con->voters, 1); sig = smartlist_get(voter->sigs, 0); |