[RICPLT-2585] E2Term Init - Support Multiple E2T Instances
[ric-plt/e2mgr.git] / E2Manager / handlers / rmrmsghandlers / ran_lost_connection_handler_test.go
index 176d901..babe4ab 100644 (file)
@@ -30,8 +30,8 @@ func TestLostConnectionHandlerSuccess(t *testing.T) {
        notificationRequest := models.NotificationRequest{RanName: ranName}
        ranReconnectionManagerMock := &mocks.RanReconnectionManagerMock{}
        ranReconnectionManagerMock.On("ReconnectRan", ranName).Return(nil)
-       handler := NewRanLostConnectionHandler(ranReconnectionManagerMock)
-       handler.Handle(logger, &notificationRequest, nil)
+       handler := NewRanLostConnectionHandler(logger, ranReconnectionManagerMock)
+       handler.Handle(&notificationRequest)
        ranReconnectionManagerMock.AssertCalled(t, "ReconnectRan", ranName)
 }
 
@@ -41,7 +41,7 @@ func TestLostConnectionHandlerFailure(t *testing.T) {
        notificationRequest := models.NotificationRequest{RanName: ranName}
        ranReconnectionManagerMock := &mocks.RanReconnectionManagerMock{}
        ranReconnectionManagerMock.On("ReconnectRan", ranName).Return(errors.New("error"))
-       handler := NewRanLostConnectionHandler(ranReconnectionManagerMock)
-       handler.Handle(logger, &notificationRequest, nil)
+       handler := NewRanLostConnectionHandler(logger, ranReconnectionManagerMock)
+       handler.Handle(&notificationRequest)
        ranReconnectionManagerMock.AssertCalled(t, "ReconnectRan", ranName)
-}
\ No newline at end of file
+}