Fix test assertion

This commit is contained in:
Aditya Mukerjee 2017-08-04 13:01:04 -04:00
parent c830992a61
commit 9bc52e3981
1 changed files with 3 additions and 1 deletions

View File

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