Browse Source

fix benchmark failure.

master
Gisle Aune 4 years ago
parent
commit
d2c7fb9fb3
  1. 6
      handle_test.go

6
handle_test.go

@ -43,8 +43,10 @@ func BenchmarkHandle(b *testing.B) {
event := irc.NewEvent("test", eventName)
wg := sync.WaitGroup{}
client.AddHandler(func(event2 *irc.Event, client *irc.Client) {
wg.Done()
client.AddHandler(func(event2 *irc.Event, _ *irc.Client) {
if event2.Kind() != "hook" {
wg.Done()
}
})
b.Run("Emit", func(b *testing.B) {

Loading…
Cancel
Save