diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-10-16 09:51:20 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-10-16 16:07:46 -0400 |
commit | 84c13a35db3c709209f75029a3b698be2d64f0da (patch) | |
tree | 6bb566743576d1ca77b87cea08346426da812d96 /src/test/test_dir.c | |
parent | bae5ba807352de10b0c93e1c048d179b0a9a5a13 (diff) | |
download | tor-84c13a35db3c709209f75029a3b698be2d64f0da.tar.gz tor-84c13a35db3c709209f75029a3b698be2d64f0da.zip |
Add pr= lines to test_dir_clip_unmeasured*.
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r-- | src/test/test_dir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index afbf5f010e..1e3a594586 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -4157,6 +4157,7 @@ gen_routerstatus_for_umbw(int idx, time_t now) vrs->has_measured_bw = 1; rs->has_bandwidth = 1; vrs->measured_bw_kb = rs->bandwidth_kb = max_unmeasured_bw_kb / 2; + vrs->protocols = tor_strdup("Link=2 Wombat=40"); break; case 1: /* Generate the second routerstatus. */ @@ -4183,6 +4184,7 @@ gen_routerstatus_for_umbw(int idx, time_t now) vrs->has_measured_bw = 1; rs->has_bandwidth = 1; vrs->measured_bw_kb = rs->bandwidth_kb = 2 * max_unmeasured_bw_kb; + vrs->protocols = tor_strdup("Link=2 Wombat=40"); break; case 2: /* Generate the third routerstatus. */ @@ -4208,6 +4210,7 @@ gen_routerstatus_for_umbw(int idx, time_t now) rs->has_bandwidth = 1; vrs->measured_bw_kb = 0; rs->bandwidth_kb = 2 * max_unmeasured_bw_kb; + vrs->protocols = tor_strdup("Link=2 Wombat=40"); break; case 3: /* Generate a fourth routerstatus that is not running. */ @@ -4233,6 +4236,7 @@ gen_routerstatus_for_umbw(int idx, time_t now) rs->has_bandwidth = 1; vrs->measured_bw_kb = 0; rs->bandwidth_kb = max_unmeasured_bw_kb / 2; + vrs->protocols = tor_strdup("Link=2 Wombat=40"); break; case 4: /* No more for this test; return NULL */ |