diff options
author | Roger Dingledine <arma@torproject.org> | 2008-06-03 21:15:09 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-06-03 21:15:09 +0000 |
commit | 5b8e84255f4ee2dd46a3aacb34289f5ccf9b6e2f (patch) | |
tree | e46f9d95fa343b9dfd03e161019461491bc7377f /src/or | |
parent | ee60a8ddff5f5d2d429dd0687c0fafe542694997 (diff) | |
download | tor-5b8e84255f4ee2dd46a3aacb34289f5ccf9b6e2f.tar.gz tor-5b8e84255f4ee2dd46a3aacb34289f5ccf9b6e2f.zip |
fix most of the geoip unit tests. one remains broken -- nick,
this looks like a real bug.
svn:r14923
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/test.c b/src/or/test.c index a54c3f2c6b..f94cb6786b 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3491,19 +3491,19 @@ test_geoip(void) geoip_note_client_seen(i, now-7200); s = geoip_get_client_history(now+5*24*60*60); test_assert(s); - test_streq("zz=24,ab=16", s); + test_streq("zz=24,ab=16,xy=8", s); tor_free(s); /* Now clear out all the zz observations. */ geoip_remove_old_clients(now-6000); s = geoip_get_client_history(now+5*24*60*60); - test_assert(! s); /* There are only 12 observations left. Not enough to - build an answer. Add 4 more in XY... */ + test_assert(s); /* Any answer is worth reporting. */ + /* Add 4 more in XY... */ for (i=55; i < 59; ++i) geoip_note_client_seen(i, now-3600); s = geoip_get_client_history(now+5*24*60*60); test_assert(s); - test_streq("ab=16", s); + test_streq("ab=16,xy=8", s); tor_free(s); } |