Skip to content

Commit

Permalink
crewjam#192: Account for Go/check changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Kress authored and crewjam committed May 1, 2019
1 parent 3083d1c commit de648af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion duration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ func (t DurationTest) TestUnmarshalText(c *C) {
for _, tc := range durationUnmarshalTests {
var d Duration
err := d.UnmarshalText(tc.in)
c.Assert(err, DeepEquals, tc.err)
if tc.err == nil {
c.Assert(err, IsNil)
} else {
c.Assert(err, NotNil)
c.Assert(err.Error(), Equals, tc.err.Error())
}
c.Assert(d, Equals, Duration(tc.out))
}
}

0 comments on commit de648af

Please sign in to comment.