mirror of https://github.com/sirupsen/logrus.git
Fix test assertion
This commit is contained in:
parent
c830992a61
commit
9bc52e3981
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue