Skip to content

Commit e317af0

Browse files
stephenxsyxieca
authored andcommitted
Fix chassis test issue (#11460)
Signed-off-by: Stephen Sun <[email protected]>
1 parent 1d32553 commit e317af0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform/mellanox/mlnx-platform-api/tests/test_chassis.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ def test_revision_permission(self):
286286

287287
def test_get_port_or_cage_type(self):
288288
chassis = Chassis()
289-
chassis.RJ45_port_list = [0]
289+
chassis._RJ45_port_inited = True
290+
chassis._RJ45_port_list = [0]
290291
assert SfpBase.SFP_PORT_TYPE_BIT_RJ45 == chassis.get_port_or_cage_type(1)
291292

292293
exceptionRaised = False

0 commit comments

Comments
 (0)