Skip to content

Commit 6fdffa2

Browse files
committed
fix: remove trailing null characters in the test code
1 parent bc2b729 commit 6fdffa2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/tests/sonic_xcvr_with_emu/test_cmis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,6 @@ async def test_get_model(emu_response, expected):
7878
)
7979
api = CmisApi(eeprom)
8080
result = api.get_model()
81+
result = result.rstrip("\x00")
8182
await eeprom.xcvr.plugout()
8283
assert result == expected

0 commit comments

Comments
 (0)