Skip to content

Commit

Permalink
Provide fake args to ECN observer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
irl committed Oct 18, 2016
1 parent 7ff9889 commit d22e9dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_observer_ecn.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
from pathspider.observer.tcp import TCP_SAE
from pathspider.plugins.ecn import ECN

class FakeECNArgs:
timeout = 5

def test_observer_ecn():
try:
import plt # libtrace may not be available
Expand All @@ -23,7 +26,7 @@ def test_observer_ecn():

logging.getLogger().setLevel(logging.INFO)

spider = ECN(1, lturi, None)
spider = ECN(1, lturi, FakeECNArgs())
o = spider.create_observer()
q = queue.Queue()
t = threading.Thread(target=o.run_flow_enqueuer,
Expand Down Expand Up @@ -67,7 +70,7 @@ def test_observer_ecn_partial_flow():

logging.getLogger().setLevel(logging.INFO)

spider = ECN(1, lturi, None)
spider = ECN(1, lturi, FakeECNArgs())
o = spider.create_observer()
q = queue.Queue()
t = threading.Thread(target=o.run_flow_enqueuer,
Expand Down

0 comments on commit d22e9dd

Please sign in to comment.