[RICPLT-2837] Fix UT to use real E2tInstanceManager instead of mock
[ric-plt/e2mgr.git] / E2Manager / e2pdus / x2_setup_request_test.go
index 42fcff8..8cf7da0 100644 (file)
@@ -65,7 +65,7 @@ func TestPackX2apSetupRequest(t *testing.T) {
        for _, tc := range testCases {
                t.Run(tc.packedPdu, func(t *testing.T) {
 
-                       payload, _, err :=PreparePackedX2SetupRequest(MaxAsn1PackedBufferSize /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, tc.eNBId, tc.eNBIdBitqty,ricFlag)
+                       payload, _, err := preparePackedX2SetupRequest(MaxAsn1PackedBufferSize /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, tc.eNBId, tc.eNBIdBitqty,ricFlag)
                        if err != nil {
                                t.Errorf("want: success, got: pack failed. Error: %v\n", err)
                        } else {
@@ -92,7 +92,7 @@ func TestPackX2apSetupRequestPackError(t *testing.T) {
        ricFlag := []byte{0xbb, 0xbc, 0xcc} /*pLMNId [3]bytes*/
        eNBId := []byte{0xab, 0xcd, 0xe}
        eNBIdBitqty := uint(Macro_eNB_ID)
-       _, _, err := PreparePackedX2SetupRequest(40 /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, eNBId, eNBIdBitqty, ricFlag)
+       _, _, err := preparePackedX2SetupRequest(40 /*max packed buffer*/, MaxAsn1CodecMessageBufferSize /*max message buffer*/, pLMNId, eNBId, eNBIdBitqty, ricFlag)
        if err != nil {
                if 0 != strings.Compare(fmt.Sprintf("%s", err), wantError) {
                        t.Errorf("want failure: %s, got: %s", wantError, err)