fix benchmark failure.
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-11-29 18:12:08 +01:00
parent 470acda045
commit 5367927ab2
+2 -2
View File
@@ -40,11 +40,11 @@ func BenchmarkHandle(b *testing.B) {
eventName := strconv.FormatInt(rng.Int63(), 36) + strconv.FormatInt(rng.Int63(), 36) + strconv.FormatInt(rng.Int63(), 36)
client := irc.New(context.Background(), irc.Config{})
event := irc.NewEvent("test", eventName)
event := irc.NewEvent("test_event", eventName)
wg := sync.WaitGroup{}
client.AddHandler(func(event2 *irc.Event, _ *irc.Client) {
if event2.Kind() != "hook" {
if event2.Kind() == "test_event" {
wg.Done()
}
})