]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix unit tests.
authorKarsten Loesing <karsten.loesing@gmx.net>
Thu, 23 Jul 2009 23:13:33 +0000 (01:13 +0200)
committerKarsten Loesing <karsten.loesing@gmx.net>
Thu, 23 Jul 2009 23:13:33 +0000 (01:13 +0200)
Now that we require EntryStatistics to be 1 for counting connecting
clients, unit tests need to set that config option, too.

Reported by Sebastian Hahn.

src/or/test.c

index b2a70eadb38fcaef66236b57cfe62b8b4e4a78ed..3103eed82860615fe86c09b18a06321ca2c86048 100644 (file)
@@ -4799,6 +4799,7 @@ main(int c, char**v)
   setup_directory();
   options_init(options);
   options->DataDirectory = tor_strdup(temp_dir);
+  options->EntryStatistics = 1;
   if (set_options(options, &errmsg) < 0) {
     printf("Failed to set initial options: %s\n", errmsg);
     tor_free(errmsg);