@@ -122,7 +122,8 @@ func TestInboxNotification_Watch(t *testing.T) {
122122},"notification title" ,"notification content" ,nil )
123123require .NoError (t ,err )
124124
125- dispatchFunc (ctx ,uuid .New ())
125+ _ ,err = dispatchFunc (ctx ,uuid .New ())
126+ require .NoError (t ,err )
126127
127128_ ,message ,err := wsConn .Read (ctx )
128129require .NoError (t ,err )
@@ -174,7 +175,8 @@ func TestInboxNotification_Watch(t *testing.T) {
174175},"memory related title" ,"memory related content" ,nil )
175176require .NoError (t ,err )
176177
177- dispatchFunc (ctx ,uuid .New ())
178+ _ ,err = dispatchFunc (ctx ,uuid .New ())
179+ require .NoError (t ,err )
178180
179181_ ,message ,err := wsConn .Read (ctx )
180182require .NoError (t ,err )
@@ -193,15 +195,17 @@ func TestInboxNotification_Watch(t *testing.T) {
193195},"disk related title" ,"disk related title" ,nil )
194196require .NoError (t ,err )
195197
196- dispatchFunc (ctx ,uuid .New ())
198+ _ ,err = dispatchFunc (ctx ,uuid .New ())
199+ require .NoError (t ,err )
197200
198201dispatchFunc ,err = inboxHandler .Dispatcher (types.MessagePayload {
199202UserID :memberClient .ID .String (),
200203NotificationTemplateID :notifications .TemplateWorkspaceOutOfMemory .String (),
201204},"second memory related title" ,"second memory related title" ,nil )
202205require .NoError (t ,err )
203206
204- dispatchFunc (ctx ,uuid .New ())
207+ _ ,err = dispatchFunc (ctx ,uuid .New ())
208+ require .NoError (t ,err )
205209
206210_ ,message ,err = wsConn .Read (ctx )
207211require .NoError (t ,err )
@@ -256,7 +260,8 @@ func TestInboxNotification_Watch(t *testing.T) {
256260},"memory related title" ,"memory related content" ,nil )
257261require .NoError (t ,err )
258262
259- dispatchFunc (ctx ,uuid .New ())
263+ _ ,err = dispatchFunc (ctx ,uuid .New ())
264+ require .NoError (t ,err )
260265
261266_ ,message ,err := wsConn .Read (ctx )
262267require .NoError (t ,err )
@@ -276,7 +281,8 @@ func TestInboxNotification_Watch(t *testing.T) {
276281},"second memory related title" ,"second memory related title" ,nil )
277282require .NoError (t ,err )
278283
279- dispatchFunc (ctx ,uuid .New ())
284+ _ ,err = dispatchFunc (ctx ,uuid .New ())
285+ require .NoError (t ,err )
280286
281287dispatchFunc ,err = inboxHandler .Dispatcher (types.MessagePayload {
282288UserID :memberClient .ID .String (),
@@ -285,7 +291,8 @@ func TestInboxNotification_Watch(t *testing.T) {
285291},"another memory related title" ,"another memory related title" ,nil )
286292require .NoError (t ,err )
287293
288- dispatchFunc (ctx ,uuid .New ())
294+ _ ,err = dispatchFunc (ctx ,uuid .New ())
295+ require .NoError (t ,err )
289296
290297_ ,message ,err = wsConn .Read (ctx )
291298require .NoError (t ,err )