1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-12 00:50:53 +00:00

Fix broken socket server test.

This commit is contained in:
SirStendec 2017-09-01 16:15:04 -04:00
parent 69d9823206
commit 3044bd6d8e

View file

@ -11,6 +11,7 @@ import (
"testing"
"time"
"github.com/FrankerFaceZ/FrankerFaceZ/socketserver/server/rate"
"github.com/gorilla/websocket"
"github.com/satori/go.uuid"
)
@ -402,7 +403,7 @@ func BenchmarkUserSubscriptionSinglePublish(b *testing.B) {
readyWg.Wait()
fmt.Println("publishing...")
if PublishToChannel(TestChannelName, message) != b.N {
if PublishToChannel(TestChannelName, message, rate.Unlimited()) != b.N {
b.Error("not enough sent")
server.CloseClientConnections()
panic("halting test instead of waiting")