mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-12 09:00:54 +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"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/FrankerFaceZ/FrankerFaceZ/socketserver/server/rate"
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/satori/go.uuid"
|
"github.com/satori/go.uuid"
|
||||||
)
|
)
|
||||||
|
@ -402,7 +403,7 @@ func BenchmarkUserSubscriptionSinglePublish(b *testing.B) {
|
||||||
readyWg.Wait()
|
readyWg.Wait()
|
||||||
|
|
||||||
fmt.Println("publishing...")
|
fmt.Println("publishing...")
|
||||||
if PublishToChannel(TestChannelName, message) != b.N {
|
if PublishToChannel(TestChannelName, message, rate.Unlimited()) != b.N {
|
||||||
b.Error("not enough sent")
|
b.Error("not enough sent")
|
||||||
server.CloseClientConnections()
|
server.CloseClientConnections()
|
||||||
panic("halting test instead of waiting")
|
panic("halting test instead of waiting")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue