[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r14952: Backport: Make unit tests pass again: new geoip behavior had (tor/branches/tor-0_2_0-patches/src/or)
Author: nickm
Date: 2008-06-04 14:42:30 -0400 (Wed, 04 Jun 2008)
New Revision: 14952
Modified:
tor/branches/tor-0_2_0-patches/src/or/test.c
Log:
Backport: Make unit tests pass again: new geoip behavior had freaked out.
Modified: tor/branches/tor-0_2_0-patches/src/or/test.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/or/test.c 2008-06-04 18:41:32 UTC (rev 14951)
+++ tor/branches/tor-0_2_0-patches/src/or/test.c 2008-06-04 18:42:30 UTC (rev 14952)
@@ -3497,11 +3497,6 @@
/* 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); /* 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,xy=8", s);
tor_free(s);