aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2023-10-05 08:41:09 -0400
committerNick Mathewson <nickm@torproject.org>2023-10-05 08:45:23 -0400
commita937648022546e8b0953e2bc918bb609e59acaf3 (patch)
tree5f5fa071732022213546bff4c581342641f9005e /src
parent5edc59bfd185a894ae2b72984e87b480531963a4 (diff)
downloadtor-a937648022546e8b0953e2bc918bb609e59acaf3.tar.gz
tor-a937648022546e8b0953e2bc918bb609e59acaf3.zip
Update consensus methods in dir_umbw tests.
These tests had previously listed methods that we no longer support.
Diffstat (limited to 'src')
-rw-r--r--src/test/test_dir.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 248fd8ab5d..87aaef7fe6 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -4078,7 +4078,7 @@ gen_routerstatus_for_umbw(int idx, time_t now)
if (vrs) {
vrs->microdesc = tor_malloc_zero(sizeof(vote_microdesc_hash_t));
tor_asprintf(&vrs->microdesc->microdesc_hash_line,
- "m 25,26,27,28 "
+ "m 32,33 "
"sha256=xyzajkldsdsajdadlsdjaslsdksdjlsdjsdaskdaaa%d\n",
idx);
}
@@ -4102,9 +4102,8 @@ vote_tweaks_for_umbw(networkstatus_t *v, int voter, time_t now)
tt_assert(v->supported_methods);
SMARTLIST_FOREACH(v->supported_methods, char *, c, tor_free(c));
smartlist_clear(v->supported_methods);
- /* Method 17 is MIN_METHOD_TO_CLIP_UNMEASURED_BW_KB */
smartlist_split_string(v->supported_methods,
- "25 26 27 28",
+ "32 33",
NULL, 0, -1);
/* If we're using a non-default clip bandwidth, add it to net_params */
if (alternate_clip_bw > 0) {