Geneve - reduce unit-test run time
Reduce the number of tunnels created/destroyed to reduce the load of the tests without changing the code covered. These are functional tests, not performance tests. This reduced the test time down to 10s from 4 minutes on my machine. Change-Id: Ifcaddc0b0628a21392c5cb247196f56bc28a53a2 Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
This commit is contained in:

committed by
Dave Wallace

parent
508cabcec8
commit
97cabc9691
@ -98,7 +98,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
|
||||
add or del tunnels sharing the same mcast dst
|
||||
to test geneve ref_count mechanism
|
||||
"""
|
||||
n_shared_dst_tunnels = 2000
|
||||
n_shared_dst_tunnels = 10
|
||||
vni_start = 10000
|
||||
vni_end = vni_start + n_shared_dst_tunnels
|
||||
for vni in range(vni_start, vni_end):
|
||||
@ -124,7 +124,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
|
||||
"""
|
||||
add or del tunnels to test geneve stability
|
||||
"""
|
||||
n_distinct_dst_tunnels = 200
|
||||
n_distinct_dst_tunnels = 10
|
||||
ip_range_start = 10
|
||||
ip_range_end = ip_range_start + n_distinct_dst_tunnels
|
||||
for dest_ip4n in ip4n_range(cls.mcast_ip4n, ip_range_start,
|
||||
|
Reference in New Issue
Block a user