summaryrefslogtreecommitdiff
path: root/internal/processing/stream/statusupdate_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/stream/statusupdate_test.go')
-rw-r--r--internal/processing/stream/statusupdate_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/processing/stream/statusupdate_test.go b/internal/processing/stream/statusupdate_test.go
index 7b987b412..8814c966f 100644
--- a/internal/processing/stream/statusupdate_test.go
+++ b/internal/processing/stream/statusupdate_test.go
@@ -42,10 +42,11 @@ func (suite *StatusUpdateTestSuite) TestStreamNotification() {
apiStatus, err := typeutils.NewConverter(&suite.state).StatusToAPIStatus(context.Background(), editedStatus, account)
suite.NoError(err)
- err = suite.streamProcessor.StatusUpdate(apiStatus, account, []string{stream.TimelineHome})
- suite.NoError(err)
+ suite.streamProcessor.StatusUpdate(context.Background(), account, apiStatus, stream.TimelineHome)
+
+ msg, ok := openStream.Recv(context.Background())
+ suite.True(ok)
- msg := <-openStream.Messages
dst := new(bytes.Buffer)
err = json.Indent(dst, []byte(msg.Payload), "", " ")
suite.NoError(err)