Skip to content

Commit

Permalink
fix: tests expected/actual were swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostsquad committed Jan 29, 2020
1 parent 0f76ff8 commit 2ae3703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jumper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestJumperClock_Now(t *testing.T) {

expectedDiff := sleepTime * time.Duration(scale)

assert.Equal(t, future.Sub(present), expectedDiff)
assert.Equal(t, expectedDiff, future.Sub(present))
})

t.Run("jumping behavior", func(t *testing.T) {
Expand All @@ -47,7 +47,7 @@ func TestJumperClock_Now(t *testing.T) {
future := present.AddDate(1, 0, 0)
c.Jump(future)

assert.Equal(t, c.Now(), future)
assert.Equal(t, future, c.Now())
})

t.Run("sleeping behavior", func(t *testing.T) {
Expand Down

0 comments on commit 2ae3703

Please sign in to comment.