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:
parent
69d9823206
commit
3044bd6d8e
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue