MCPcopy Create free account
hub / github.com/FDio/vpp / test_index_consistency

Method test_index_consistency

test/test_stats_client.py:137–151  ·  view source on GitHub ↗

Test index consistency despite changes in the stats

(self)

Source from the content-addressed store, hash-verified

135 self.assertEqual(vectors[0], rx[0]["packets"])
136
137 def test_index_consistency(self):
138 """Test index consistency despite changes in the stats"""
139 d = self.statistics.ls(["/if/names"])
140 self.create_loopback_interfaces(10)
141 for i in range(10):
142 try:
143 s = self.statistics.dump(d)
144 break
145 except:
146 pass
147 k, v = s.popitem()
148 self.assertEqual(len(v), 11)
149
150 for i in self.lo_interfaces:
151 i.remove_vpp_config()
152
153 @unittest.skip("Manual only")
154 def test_mem_leak(self):

Callers

nothing calls this directly

Calls 4

lsMethod · 0.45
dumpMethod · 0.45
remove_vpp_configMethod · 0.45

Tested by

no test coverage detected