summaryrefslogtreecommitdiffstats
path: root/api/web_socket_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/web_socket_test.go')
-rw-r--r--api/web_socket_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/api/web_socket_test.go b/api/web_socket_test.go
index 527771556..63c4dd05d 100644
--- a/api/web_socket_test.go
+++ b/api/web_socket_test.go
@@ -55,12 +55,17 @@ func TestSocket(t *testing.T) {
time.Sleep(300 * time.Millisecond)
Client.Must(Client.JoinChannel(channel1.Id))
- // Read the join channel message that gets generated
+ // Read the user_added message that gets generated
var rmsg model.Message
if err := c2.ReadJSON(&rmsg); err != nil {
t.Fatal(err)
}
+ // Read the second user_added message that gets generated
+ if err := c2.ReadJSON(&rmsg); err != nil {
+ t.Fatal(err)
+ }
+
// Test sending message without a channelId
m := model.NewMessage("", "", "", model.ACTION_TYPING)
m.Add("RootId", model.NewId())