fix for entry data field race condition

This commit is contained in:
David Bariod
2021-02-16 10:29:37 +01:00
parent f513f99c15
commit ac6e35b4c2
5 changed files with 79 additions and 34 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ func TestFieldValueError(t *testing.T) {
t.Error("unexpected error", err)
}
_, ok := data[FieldKeyLogrusError]
require.True(t, ok)
require.True(t, ok, `cannot found expected "logrus_error" field: %v`, data)
}
func TestNoFieldValueError(t *testing.T) {