Skip to content

Commit

Permalink
Fix chassis test issue (#11460)
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <stephens@nvidia.com>
  • Loading branch information
stephenxs authored Jul 17, 2022
1 parent 77c224b commit 8282d42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/mellanox/mlnx-platform-api/tests/test_chassis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8282d42

Please sign in to comment.