Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[RIC-199] - e2_term_init_notification_handler - setup removed
[ric-plt/e2mgr.git]
/
E2Manager
/
handlers
/
httpmsghandlers
/
get_nodeb_id_list_request_handler_test.go
diff --git
a/E2Manager/handlers/httpmsghandlers/get_nodeb_id_list_request_handler_test.go
b/E2Manager/handlers/httpmsghandlers/get_nodeb_id_list_request_handler_test.go
index
a835377
..
eb5bae3
100644
(file)
--- a/
E2Manager/handlers/httpmsghandlers/get_nodeb_id_list_request_handler_test.go
+++ b/
E2Manager/handlers/httpmsghandlers/get_nodeb_id_list_request_handler_test.go
@@
-27,7
+27,6
@@
import (
"e2mgr/services"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
"e2mgr/services"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/common"
"gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/entities"
- "gerrit.o-ran-sc.org/r/ric-plt/nodeb-rnib.git/reader"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"testing"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"testing"
@@
-37,10
+36,8
@@
func setupGetNodebIdListRequestHandlerTest(t *testing.T) (*GetNodebIdListRequest
log := initLog(t)
config := &configuration.Configuration{RnibRetryIntervalMs: 10, MaxRnibConnectionAttempts: 3}
readerMock := &mocks.RnibReaderMock{}
log := initLog(t)
config := &configuration.Configuration{RnibRetryIntervalMs: 10, MaxRnibConnectionAttempts: 3}
readerMock := &mocks.RnibReaderMock{}
- readerProvider := func() reader.RNibReader {
- return readerMock
- }
- rnibDataService := services.NewRnibDataService(log, config, readerProvider, nil)
+
+ rnibDataService := services.NewRnibDataService(log, config, readerMock, nil)
handler := NewGetNodebIdListRequestHandler(log, rnibDataService)
return handler, readerMock
}
handler := NewGetNodebIdListRequestHandler(log, rnibDataService)
return handler, readerMock
}