[tor-commits] [sbws/master] Add observed bandwidth data
juga at torproject.org
juga at torproject.org
Tue Sep 18 09:26:11 UTC 2018
commit 12036db4320841576161b1ca30b0399446319b44
Author: juga0 <juga at riseup.net>
Date: Wed Aug 29 20:21:37 2018 +0000
Add observed bandwidth data
---
tests/unit/conftest.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py
index 0564a50..80d27fa 100644
--- a/tests/unit/conftest.py
+++ b/tests/unit/conftest.py
@@ -63,9 +63,10 @@ DOWNLOADS3 = [
]
SCANNER = "test"
AVG_BW = 966080
+OBS_BW = 524288
RELAY1 = Result.Relay(FP1, NICK1, IP1, ED25519,
- average_bandwidth=AVG_BW)
+ average_bandwidth=AVG_BW, observed_bandwidth=OBS_BW)
RELAY2 = Result.Relay(FP2, NICK2, IP2, ED25519)
RESULT = Result(RELAY1, CIRC12, DEST_URL, SCANNER, t=TIME1)
@@ -84,7 +85,8 @@ RELAY_DICT = {
"address": IP1,
"nickname": NICK1,
"master_key_ed25519": ED25519,
- "relay_average_bandwidth": AVG_BW
+ "relay_average_bandwidth": AVG_BW,
+ "relay_observed_bandwidth": OBS_BW
}
BASE_RESULT_NO_RELAY_DICT = {
More information about the tor-commits
mailing list