diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-06-04 18:38:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-06-04 18:38:37 +0000 |
commit | fa0989fd67d638480ea5811657ec5d25d6962edc (patch) | |
tree | 97ecf2192f441e8da4b54afe0887c80d2bed9fd7 /src/or/test.c | |
parent | b8bde32c3a906ec58a3b37f6e49275a1a8a2d40a (diff) | |
download | tor-fa0989fd67d638480ea5811657ec5d25d6962edc.tar.gz tor-fa0989fd67d638480ea5811657ec5d25d6962edc.zip |
Make unit tests pass again: new geoip behavior had freaked out.
svn:r14949
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/or/test.c b/src/or/test.c index 6dcb521eeb..c70356910a 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3919,19 +3919,14 @@ test_geoip(void) geoip_note_client_seen(GEOIP_CLIENT_CONNECT, i, now-7200); s = geoip_get_client_history(now+5*24*60*60, GEOIP_CLIENT_CONNECT); 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, GEOIP_CLIENT_CONNECT); - test_assert(! s); /* There are only 12 observations left. Not enough to - build an answer. Add 4 more in XY... */ - for (i=55; i < 59; ++i) - geoip_note_client_seen(GEOIP_CLIENT_CONNECT, i, now-3600); - s = geoip_get_client_history(now+5*24*60*60, GEOIP_CLIENT_CONNECT); test_assert(s); - test_streq("ab=16", s); + test_streq("ab=16,xy=8", s); tor_free(s); } |