summaryrefslogtreecommitdiff
path: root/cesar/test_general/station
diff options
context:
space:
mode:
authorNélio Laranjeiro2012-03-30 10:56:23 +0200
committerNélio Laranjeiro2012-07-18 17:36:37 +0200
commit6df860129959376886e2c000080992349fa4f165 (patch)
treeffd1c744ffc8706f1ee478d0e316018386a030bf /cesar/test_general/station
parente377852d4cd982105a99204239451de9e302c028 (diff)
cesar/test_general/station/scenario: fix scenario 3, refs #2920
Diffstat (limited to 'cesar/test_general/station')
-rw-r--r--cesar/test_general/station/scenario/av/py/sc03_two_avln_coexisting.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cesar/test_general/station/scenario/av/py/sc03_two_avln_coexisting.py b/cesar/test_general/station/scenario/av/py/sc03_two_avln_coexisting.py
index 488e476760..91e36d251b 100644
--- a/cesar/test_general/station/scenario/av/py/sc03_two_avln_coexisting.py
+++ b/cesar/test_general/station/scenario/av/py/sc03_two_avln_coexisting.py
@@ -88,17 +88,17 @@ class TestTwoAVLNCoexistence(unittest.TestCase):
"""
self.csi.init_test_bed ([2, 2])
sta = self.csi.avln_get (0).get_sta (0)
- sniffer (self.csi.get_maximus (), sta, beacon_tx = True,
- beacon_rx = True)
+ self.failUnless (sniffer (self.csi.get_maximus (), sta,
+ beacon_tx = True, beacon_rx = True))
# We need 4 beacons in 1 seconds, like in a second a CCo emits 25
# beacons, we have all the time.
- rsp = self.csi.sniff_packets (25, 1);
- sniffer (self.csi.get_maximus (), sta)
+ self.csi.process_wait_sec (1)
+ self.failUnless (sniffer (self.csi.get_maximus (), sta))
# Parse the beacons and store the mac address of the CCo if it is not
# already present in the mac_addrs list and only if the beacon is a
# central beacon.
mac_addrs = []
- for i in rsp:
+ for i in self.csi.sniffed_packets:
mme = Ether (i.get ())
if mme.getlayer(1).sniff_type == 1:
beacon = mme.getlayer (2)