[tor-commits] [sbws/master] tests: adjust torflow scale values

juga at torproject.org juga at torproject.org
Fri Dec 21 08:54:09 UTC 2018


commit 6875f8ae15170e904c7a4237ca3c59c1bad3ea9b
Author: juga0 <juga at riseup.net>
Date:   Fri Dec 21 08:48:30 2018 +0000

    tests: adjust torflow scale values
    
    Since the data for the tests and the torflow scaling method was
    changed in #bug28598, ajust the values after merging #28602.
---
 tests/unit/lib/test_v3bwfile.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/unit/lib/test_v3bwfile.py b/tests/unit/lib/test_v3bwfile.py
index 155f0aa..2d38f48 100644
--- a/tests/unit/lib/test_v3bwfile.py
+++ b/tests/unit/lib/test_v3bwfile.py
@@ -269,19 +269,19 @@ def test_torflow_scale(datadir):
     results = load_result_file(str(datadir.join("results.txt")))
     v3bwfile = V3BWFile.from_results(results, scaling_method=TORFLOW_SCALING,
                                      round_digs=TORFLOW_ROUND_DIG)
-    assert v3bwfile.bw_lines[0].bw == 524
+    assert v3bwfile.bw_lines[0].bw == 123
     v3bwfile = V3BWFile.from_results(results, scaling_method=TORFLOW_SCALING,
                                      torflow_cap=0.0001,
                                      round_digs=TORFLOW_ROUND_DIG)
-    assert v3bwfile.bw_lines[0].bw == 524
+    assert v3bwfile.bw_lines[0].bw == 123
     v3bwfile = V3BWFile.from_results(results, scaling_method=TORFLOW_SCALING,
                                      torflow_cap=1,
                                      round_digs=TORFLOW_ROUND_DIG)
-    assert v3bwfile.bw_lines[0].bw == 524
+    assert v3bwfile.bw_lines[0].bw == 123
     v3bwfile = V3BWFile.from_results(results, scaling_method=TORFLOW_SCALING,
                                      torflow_cap=1,
                                      round_digs=PROP276_ROUND_DIG)
-    assert v3bwfile.bw_lines[0].bw == 520
+    assert v3bwfile.bw_lines[0].bw == 120
 
 
 def test_results_away_each_other(datadir):



More information about the tor-commits mailing list