Fix chassis test issue (#11460)

Signed-off-by: Stephen Sun <stephens@nvidia.com>
This commit is contained in:
Stephen Sun 2022-07-17 10:34:45 +08:00 committed by Ying Xie
parent 1d32553a91
commit e317af0e9a

View File

@ -286,7 +286,8 @@ class TestChassis:
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