From edf291e5ef776a03ff18a768b128b0f73c8132f2 Mon Sep 17 00:00:00 2001 From: opcoder0 <110003254+opcoder0@users.noreply.github.com> Date: Fri, 17 Jan 2025 12:16:11 +0000 Subject: [PATCH] Fix test_sysuptime conversion error --- tests/telemetry/test_telemetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/telemetry/test_telemetry.py b/tests/telemetry/test_telemetry.py index a31aaf0489..dc5f388755 100644 --- a/tests/telemetry/test_telemetry.py +++ b/tests/telemetry/test_telemetry.py @@ -247,7 +247,7 @@ def test_sysuptime(duthosts, enum_rand_one_per_hwsku_hostname, ptfhost, gnxi_pat for line_info in system_uptime_info: if "total" in line_info: try: - system_uptime_2nd = float(line_info.split(":")[1].strip()) + system_uptime_2nd = float(line_info.split(":")[1].strip().rstrip(',')) found_system_uptime_field = True except ValueError as err: pytest.fail(