@@ -122,7 +122,8 @@ func TestInboxNotification_Watch(t *testing.T) {
122
122
},"notification title" ,"notification content" ,nil )
123
123
require .NoError (t ,err )
124
124
125
- dispatchFunc (ctx ,uuid .New ())
125
+ _ ,err = dispatchFunc (ctx ,uuid .New ())
126
+ require .NoError (t ,err )
126
127
127
128
_ ,message ,err := wsConn .Read (ctx )
128
129
require .NoError (t ,err )
@@ -174,7 +175,8 @@ func TestInboxNotification_Watch(t *testing.T) {
174
175
},"memory related title" ,"memory related content" ,nil )
175
176
require .NoError (t ,err )
176
177
177
- dispatchFunc (ctx ,uuid .New ())
178
+ _ ,err = dispatchFunc (ctx ,uuid .New ())
179
+ require .NoError (t ,err )
178
180
179
181
_ ,message ,err := wsConn .Read (ctx )
180
182
require .NoError (t ,err )
@@ -193,15 +195,17 @@ func TestInboxNotification_Watch(t *testing.T) {
193
195
},"disk related title" ,"disk related title" ,nil )
194
196
require .NoError (t ,err )
195
197
196
- dispatchFunc (ctx ,uuid .New ())
198
+ _ ,err = dispatchFunc (ctx ,uuid .New ())
199
+ require .NoError (t ,err )
197
200
198
201
dispatchFunc ,err = inboxHandler .Dispatcher (types.MessagePayload {
199
202
UserID :memberClient .ID .String (),
200
203
NotificationTemplateID :notifications .TemplateWorkspaceOutOfMemory .String (),
201
204
},"second memory related title" ,"second memory related title" ,nil )
202
205
require .NoError (t ,err )
203
206
204
- dispatchFunc (ctx ,uuid .New ())
207
+ _ ,err = dispatchFunc (ctx ,uuid .New ())
208
+ require .NoError (t ,err )
205
209
206
210
_ ,message ,err = wsConn .Read (ctx )
207
211
require .NoError (t ,err )
@@ -256,7 +260,8 @@ func TestInboxNotification_Watch(t *testing.T) {
256
260
},"memory related title" ,"memory related content" ,nil )
257
261
require .NoError (t ,err )
258
262
259
- dispatchFunc (ctx ,uuid .New ())
263
+ _ ,err = dispatchFunc (ctx ,uuid .New ())
264
+ require .NoError (t ,err )
260
265
261
266
_ ,message ,err := wsConn .Read (ctx )
262
267
require .NoError (t ,err )
@@ -276,7 +281,8 @@ func TestInboxNotification_Watch(t *testing.T) {
276
281
},"second memory related title" ,"second memory related title" ,nil )
277
282
require .NoError (t ,err )
278
283
279
- dispatchFunc (ctx ,uuid .New ())
284
+ _ ,err = dispatchFunc (ctx ,uuid .New ())
285
+ require .NoError (t ,err )
280
286
281
287
dispatchFunc ,err = inboxHandler .Dispatcher (types.MessagePayload {
282
288
UserID :memberClient .ID .String (),
@@ -285,7 +291,8 @@ func TestInboxNotification_Watch(t *testing.T) {
285
291
},"another memory related title" ,"another memory related title" ,nil )
286
292
require .NoError (t ,err )
287
293
288
- dispatchFunc (ctx ,uuid .New ())
294
+ _ ,err = dispatchFunc (ctx ,uuid .New ())
295
+ require .NoError (t ,err )
289
296
290
297
_ ,message ,err = wsConn .Read (ctx )
291
298
require .NoError (t ,err )