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>
diff --git a/test/test_geneve.py b/test/test_geneve.py
index c32302c..a670bc4 100644
--- a/test/test_geneve.py
+++ b/test/test_geneve.py
@@ -98,7 +98,7 @@
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 @@
"""
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,