Skip to content

Commit

Permalink
Updates regression test for nsecs alignment.
Browse files Browse the repository at this point in the history
The alignment of the nsecs field was changed in fbc164d
and merged with pull request ros#45, this caused the regression test for
the timestamp field to fail.

This commit updates the comparison value of the regression tests to reflect
the new alignment.
  • Loading branch information
iwanders committed Dec 31, 2015
1 parent fbc164d commit 015e517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_genpy_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,10 +562,10 @@ def __init__(self, t, d):
self.d = d
self.assertEquals("""t:
secs: 987
nsecs: 654
nsecs: 654
d:
secs: 123
nsecs: 456""", strify_message(M5(Time(987, 654), Duration(123, 456))))
nsecs: 456""", strify_message(M5(Time(987, 654), Duration(123, 456))))

# test final clause of strify -- str anything that isn't recognized
if sys.hexversion > 0x03000000: # Python3
Expand Down

0 comments on commit 015e517

Please sign in to comment.