Skip to content

Commit

Permalink
Fix test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ChimeraCoder committed Aug 17, 2017
1 parent c830992 commit 9bc52e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hook_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ func TestAddHookRace(t *testing.T) {
}()
wg.Wait()
}, func(fields Fields) {
assert.Equal(t, hook.Fired, true)
// the line may have been logged
// before the hook was added, so we can't
// actually assert on the hook
})
}

0 comments on commit 9bc52e3

Please sign in to comment.