mirror of https://github.com/sirupsen/logrus.git
Merge pull request #752 from dgsb/bug/751
Fix a race condition in TestLoggingWithHooksRace
This commit is contained in:
commit
0dad3b6953
|
@ -51,11 +51,11 @@ func TestLoggingWithHooksRace(t *testing.T) {
|
|||
}()
|
||||
}
|
||||
|
||||
wg.Wait()
|
||||
|
||||
assert.Equal(logrus.InfoLevel, hook.LastEntry().Level)
|
||||
assert.Equal("info", hook.LastEntry().Message)
|
||||
|
||||
wg.Wait()
|
||||
|
||||
entries := hook.AllEntries()
|
||||
assert.Equal(100, len(entries))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue