Test index consistency despite changes in the stats
(self)
| 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): |
nothing calls this directly
no test coverage detected