diff --git a/tests/test_orchstats.py b/tests/test_orchstats.py index d6dcc3a8e97..30e3802144f 100644 --- a/tests/test_orchstats.py +++ b/tests/test_orchstats.py @@ -3,5 +3,5 @@ def test_orchstats(dvs: conftest.DockerVirtualSwitch,): - tb=swsscommon.Table(dvs.get_counters_db(), "ORCH_STATS_TABLE") - assert(tb.get("PORT")[0]) + stats = dict(dvs.get_counters_db().get_entry("ORCH_STATS_TABLE", "PORT_TABLE")) + assert(stats["SET"] > 0)