summaryrefslogtreecommitdiff
path: root/internal/processing/stream/notification_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/stream/notification_test.go')
-rw-r--r--internal/processing/stream/notification_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/processing/stream/notification_test.go b/internal/processing/stream/notification_test.go
index 2138f0025..e12f23abe 100644
--- a/internal/processing/stream/notification_test.go
+++ b/internal/processing/stream/notification_test.go
@@ -49,10 +49,11 @@ func (suite *NotificationTestSuite) TestStreamNotification() {
Account: followAccountAPIModel,
}
- err = suite.streamProcessor.Notify(notification, account)
- suite.NoError(err)
+ suite.streamProcessor.Notify(context.Background(), account, notification)
+
+ 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)