From 8282d427e49c063c6320478cde1c948ec97106dd Mon Sep 17 00:00:00 2001 From: Stephen Sun <5379172+stephenxs@users.noreply.github.com> Date: Sun, 17 Jul 2022 10:34:45 +0800 Subject: [PATCH] Fix chassis test issue (#11460) Signed-off-by: Stephen Sun --- platform/mellanox/mlnx-platform-api/tests/test_chassis.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/mellanox/mlnx-platform-api/tests/test_chassis.py b/platform/mellanox/mlnx-platform-api/tests/test_chassis.py index 38b6bd6cfffd..8ae4ece8eec6 100644 --- a/platform/mellanox/mlnx-platform-api/tests/test_chassis.py +++ b/platform/mellanox/mlnx-platform-api/tests/test_chassis.py @@ -286,7 +286,8 @@ def test_revision_permission(self): def test_get_port_or_cage_type(self): chassis = Chassis() - chassis.RJ45_port_list = [0] + chassis._RJ45_port_inited = True + chassis._RJ45_port_list = [0] assert SfpBase.SFP_PORT_TYPE_BIT_RJ45 == chassis.get_port_or_cage_type(1) exceptionRaised = False