Merge pull request #752 from dgsb/bug/751

Fix a race condition in TestLoggingWithHooksRace
This commit is contained in:
Simon Eskildsen 2018-05-15 11:40:58 -04:00 committed by GitHub
commit 0dad3b6953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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))
}