Skip to content

Commit 46f12db

Browse files
Fix unit test (#4705)
'regression.uts' / "Sending and receiving an TCP syn with flooding methods"
1 parent 000e16b commit 46f12db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/regression.uts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,7 @@ from functools import partial
18021802
def _test_flood(ip, flood_function, add_ether=False):
18031803
with no_debug_dissector():
18041804
p = IP(dst=ip)/TCP(sport=RandShort(), dport=80, flags="S")
1805+
p[TCP].no_cache = True # Disable caching for the TCP layer, since `sport` is set with a random field.
18051806
if add_ether:
18061807
p = Ether()/p
18071808
p.show2()

0 commit comments

Comments
 (0)