Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

test_measurement.py fails #94

Open
juga0 opened this issue Feb 13, 2018 · 2 comments
Open

test_measurement.py fails #94

juga0 opened this issue Feb 13, 2018 · 2 comments
Labels

Comments

@juga0
Copy link
Collaborator

juga0 commented Feb 13, 2018

Test fails running tox with ./chutney start networks/basic-025

[ERROR]
Traceback (most recent call last):
  File "/home/travis/build/juga0/bwscanner/test/test_measurement.py", line 68, in <lambda>
    scan.addCallback(lambda _: check_all_routers_measured(self.tmp))
  File "/home/travis/build/juga0/bwscanner/test/test_measurement.py", line 64, in check_all_routers_measured
    assert measured_relays == all_relays
exceptions.AssertionError: 
test.test_measurement.TestBwscan.test_scan_chutney

It might have to do with the algorithm used to choose the path [0]. Chutney creates less than 25 relays and the slice is 50.

[0] https://github.com/TheTorProject/bwscanner/blob/develop/bwscanner/circuit.py#L101

@juga0 juga0 added the bug label Feb 13, 2018
@juga0 juga0 added this to the simple_working milestone Mar 20, 2018
@juga0 juga0 changed the title test_measurement.py fails in travis test_measurement.py fails Mar 20, 2018
@aagbsn
Copy link
Collaborator

aagbsn commented Mar 20, 2018

Is this reproducible every run? I tested branch develop at tip: cd023b2

@juga0
Copy link
Collaborator Author

juga0 commented Mar 20, 2018

Yes, it happens locally for me in every run using same branch and commit.
It doesn't seem the case in travis thought.

@juga0 juga0 mentioned this issue Mar 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants