Skip to content

Commit

Permalink
Correct Websockets test name
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Jun 21, 2021
1 parent 591b69b commit 87d023d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions tests/plugins/websockets/configs/.rr-websockets-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ http:
allocate_timeout: 60s
destroy_timeout: 60s

redis:
addrs:
- "localhost:6379"

broadcast:
default:
driver: memory
Expand Down
4 changes: 2 additions & 2 deletions tests/plugins/websockets/websocket_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 87d023d

Please sign in to comment.