diff --git a/hook_test.go b/hook_test.go index d14d1e3..4fea751 100644 --- a/hook_test.go +++ b/hook_test.go @@ -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 }) }