RocketChat / Rocket.Chat.Go.SDK

Go SDK for REST API and Realtime api
MIT License
60 stars 58 forks source link

realtime messages_test fail #1

Closed LorenzBischof closed 6 years ago

LorenzBischof commented 6 years ago

I'm new to Go. The way I would fix the following tests would be:

messageChannel := make(chan models.Message)
err := c.SubscribeToMessageStream(&general, messageChannel)

But it might be better to return a channel (instead of editing the test)?

./messages_test.go:17:22: cannot assign 1 values to 2 variables
./messages_test.go:17:51: not enough arguments in call to c.SubscribeToMessageStream
    have (*models.Channel)
    want (*models.Channel, chan models.Message)
./messages_test.go:52:22: cannot assign 1 values to 2 variables
./messages_test.go:52:51: not enough arguments in call to c.SubscribeToMessageStream
    have (*models.Channel)
    want (*models.Channel, chan models.Message)