Skip to content

Commit

Permalink
Fix TestDateField
Browse files Browse the repository at this point in the history
  • Loading branch information
andywongarista committed Nov 3, 2021
1 parent e8bae97 commit 80deff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/sonic_xcvr/test_xcvr_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,6 @@ def test_decode(self):
class TestDateField(object):
def test_decode(self):
field = mem_map.get_field("Date")
data = bytearray(b'\x32\x31\x31\x30\x32\x30\x00')
data = bytearray(b'\x32\x31\x31\x30\x32\x30\x00\x00')
decoded = field.decode(data)
assert decoded == "2021-10-22 "
assert decoded == "2021-10-20 \0\0"

0 comments on commit 80deff4

Please sign in to comment.