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)
I'm new to Go. The way I would fix the following tests would be:
But it might be better to return a channel (instead of editing the test)?