-#!/usr/bin/env python2.7
+#!/usr/bin/env python3
import unittest
-import time
import psutil
from vpp_papi.vpp_stats import VPPStats
+from framework import tag_fixme_vpp_workers
from framework import VppTestCase, VppTestRunner
+@tag_fixme_vpp_workers
class StatsClientTestCase(VppTestCase):
"""Test Stats Client"""
def test_set_errors(self):
"""Test set errors"""
self.assertEqual(self.statistics.set_errors(), {})
- self.assertEqual(self.statistics.get_counter('/err/ethernet-input/no'),
- [0])
+ self.assertEqual(
+ self.statistics.get_counter('/err/ethernet-input/no error'), [0])
def test_client_fd_leak(self):
"""Test file descriptor count - VPP-1486"""
initial_fds = p.num_fds()
for _ in range(100):
- stats = VPPStats(socketname=cls.stats_sock)
+ stats = VPPStats(socketname=cls.get_stats_sock_path())
stats.disconnect()
ending_fds = p.num_fds()