From 9bc52e39813590fd3b61e23badfc85c3bbee2a73 Mon Sep 17 00:00:00 2001 From: Aditya Mukerjee Date: Fri, 4 Aug 2017 13:01:04 -0400 Subject: [PATCH] Fix test assertion --- hook_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }) }