-/*******************************************************************************
- *
+/*
* Copyright (c) 2019 AT&T Intellectual Property.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
- *******************************************************************************/
+ */
+
+/*
+ * This source code is part of the near-RT RIC (RAN Intelligent Controller)
+ * platform project (RICP).
+ */
+
package e2pdus
import (
)
func TestKnownCausesToX2ResetPDU(t *testing.T) {
- _, err := logger.InitLogger(logger.InfoLevel)
+ InfoLevel := int8(3)
+ _, err := logger.InitLogger(InfoLevel)
if err != nil {
t.Errorf("failed to initialize logger, error: %s", err)
}
}
func TestKnownCausesToX2ResetPDUFailure(t *testing.T) {
- _, err := logger.InitLogger(logger.InfoLevel)
+ InfoLevel := int8(3)
+ _, err := logger.InitLogger(InfoLevel)
if err != nil {
t.Errorf("failed to initialize logger, error: %s", err)
}
}
func TestPrepareX2ResetPDUsFailure(t *testing.T) {
- _, err := logger.InitLogger(logger.InfoLevel)
+ InfoLevel := int8(3)
+ _, err := logger.InitLogger(InfoLevel)
if err != nil {
t.Errorf("failed to initialize logger, error: %s", err)
}
t.Errorf("want: error, got: success.\n")
}
- expected := "#x2_reset_known_causes_test.TestPrepareX2ResetPDUsFailure - failed to build and pack the reset message #src/asn1codec_utils.c.pack_pdu_aux - Encoded output of E2AP-PDU, is too big:"
+ expected := "failed to build and pack the reset message #src/asn1codec_utils.c.pack_pdu_aux - Encoded output of E2AP-PDU, is too big:"
if !strings.Contains(err.Error(), expected) {
t.Errorf("want :[%s], got: [%s]\n", expected, err)
}