X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Frmrmsghandlers%2Fran_lost_connection_handler_test.go;h=babe4abe9ceba93e96ed6652ac8313247042f018;hb=5660067626f34d1fac7753ea4eb5c5c99f93192e;hp=176d901ab0514897d413c00ba47173b8b546f99f;hpb=ffd085dd7f0654b84b163a7bfedd3fa89e7b8a71;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler_test.go b/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler_test.go index 176d901..babe4ab 100644 --- a/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler_test.go +++ b/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler_test.go @@ -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, ¬ificationRequest, nil) + handler := NewRanLostConnectionHandler(logger, ranReconnectionManagerMock) + handler.Handle(¬ificationRequest) 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, ¬ificationRequest, nil) + handler := NewRanLostConnectionHandler(logger, ranReconnectionManagerMock) + handler.Handle(¬ificationRequest) ranReconnectionManagerMock.AssertCalled(t, "ReconnectRan", ranName) -} \ No newline at end of file +}