summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-03-12 08:40:26 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-03-17 11:53:09 -0400
commit066748c9cde058db4c12dec0675c036ac11d7e84 (patch)
tree611902268bbf51261e86cb9454cd23b4be652a87 /src/test
parente8d224dfb14a73e6b47ab09def56217f66a2ea46 (diff)
downloadtor-066748c9cde058db4c12dec0675c036ac11d7e84.tar.gz
tor-066748c9cde058db4c12dec0675c036ac11d7e84.zip
Add a DormantTimeoutEnabled to disable dormant mode entirely
(If you need to do this in an older version you can just set DormantClientTimeout to something huge.) Closes #40228.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_mainloop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_mainloop.c b/src/test/test_mainloop.c
index c4e60d9da5..a9bb714a0f 100644
--- a/src/test/test_mainloop.c
+++ b/src/test/test_mainloop.c
@@ -231,6 +231,8 @@ test_mainloop_check_participation(void *arg)
const time_t start = 1542658829;
const time_t ONE_DAY = 24*60*60;
+ options->DormantTimeoutEnabled = 1;
+
// Suppose we've been idle for a day or two
reset_user_activity(start - 2*ONE_DAY);
set_network_participation(true);