forked from mirror/logrus
Fix test assertion
This commit is contained in:
parent
c830992a61
commit
9bc52e3981
|
@ -137,6 +137,8 @@ func TestAddHookRace(t *testing.T) {
|
||||||
}()
|
}()
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
}, func(fields Fields) {
|
}, 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