summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-06-21 09:54:52 +0300
committerValery Piashchynski <[email protected]>2021-06-21 09:54:52 +0300
commit87d023d32feef5fe28c9bb65a796deb77d536b15 (patch)
tree31cde0b4d26a93ef5e674f602172b0a0f64afc28
parent591b69be9279158cfe9e7083152d308c4ee480b7 (diff)
Correct Websockets test namev2.3.1-beta.4
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--tests/plugins/websockets/configs/.rr-websockets-init.yaml4
-rw-r--r--tests/plugins/websockets/websocket_plugin_test.go4
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/plugins/websockets/configs/.rr-websockets-init.yaml b/tests/plugins/websockets/configs/.rr-websockets-init.yaml
index 14472f8a..115f9a71 100644
--- a/tests/plugins/websockets/configs/.rr-websockets-init.yaml
+++ b/tests/plugins/websockets/configs/.rr-websockets-init.yaml
@@ -19,10 +19,6 @@ http:
allocate_timeout: 60s
destroy_timeout: 60s
-redis:
- addrs:
- - "localhost:6379"
-
broadcast:
default:
driver: memory
diff --git a/tests/plugins/websockets/websocket_plugin_test.go b/tests/plugins/websockets/websocket_plugin_test.go
index 29bf28be..5ed0c3f3 100644
--- a/tests/plugins/websockets/websocket_plugin_test.go
+++ b/tests/plugins/websockets/websocket_plugin_test.go
@@ -30,7 +30,7 @@ import (
"github.com/stretchr/testify/assert"
)
-func TestBroadcastInit(t *testing.T) {
+func TestWebsocketsInit(t *testing.T) {
cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel))
assert.NoError(t, err)
@@ -756,7 +756,7 @@ func RPCWsPub(port string) func(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, "{\"topic\":\"foo\",\"payload\":\"hello, PHP\"}", retMsg)
- // //// LEAVE foo, foo2 /////////
+ // //// LEAVE foo /////////
d, err = json.Marshal(messageWS("leave", []byte("hello websockets"), "foo"))
if err != nil {
panic(err)