diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-02-18 09:17:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-02-18 09:17:02 -0500 |
commit | 96211bcf714ac739f605dc0b5b8754418080591f (patch) | |
tree | 7c677d7993a65df2df28171dc7695a4dbab80937 /src/test/test_entrynodes.c | |
parent | 164eeefb9360e20d358f3a08157c5b6227d98ac7 (diff) | |
parent | 5c34a53068f5556f5648dfe522030983f552a1fd (diff) | |
download | tor-96211bcf714ac739f605dc0b5b8754418080591f.tar.gz tor-96211bcf714ac739f605dc0b5b8754418080591f.zip |
Merge branch 'bug9321_rerebase'
Conflicts:
src/or/dirvote.h
src/test/include.am
src/test/test_entrynodes.c
Diffstat (limited to 'src/test/test_entrynodes.c')
-rw-r--r-- | src/test/test_entrynodes.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c index a7e18cdd97..3137edb995 100644 --- a/src/test/test_entrynodes.c +++ b/src/test/test_entrynodes.c @@ -19,6 +19,7 @@ #include "config.h" #include "testhelper.h" +#include "test_helpers.h" /* TODO: * choose_random_entry() test with state set. @@ -271,19 +272,6 @@ state_lines_free(smartlist_t *entry_guard_lines) smartlist_free(entry_guard_lines); } -/* Return a statically allocated string representing yesterday's date - * in ISO format. We use it so that state file items are not found to - * be outdated. */ -static const char * -get_yesterday_date_str(void) -{ - static char buf[ISO_TIME_LEN+1]; - - time_t yesterday = time(NULL) - 24*60*60; - format_iso_time(buf, yesterday); - return buf; -} - /* Tests entry_guards_parse_state(). It creates a fake Tor state with a saved entry guard and makes sure that Tor can parse it and creates the right entry node out of it. |