diff --git a/srsgnb/src/stack/ric/test/e2ap_test.cc b/srsgnb/src/stack/ric/test/e2ap_test.cc index f7d25bae2..0c6b349c3 100644 --- a/srsgnb/src/stack/ric/test/e2ap_test.cc +++ b/srsgnb/src/stack/ric/test/e2ap_test.cc @@ -159,7 +159,9 @@ void test_native_e2ap_reset_request() { srsran::unique_byte_buffer_t buf = srsran::make_byte_buffer(); e2_ap_pdu_c pdu, pdu2; - e2ap e2ap_; + srslog::basic_logger& logger = srslog::fetch_basic_logger("E2AP"); + dummy_metrics_interface dummy_metrics; + e2ap e2ap_(logger, &dummy_metrics); pdu = e2ap_.generate_reset_request(); asn1::bit_ref bref(buf->msg, buf->get_tailroom()); @@ -178,7 +180,9 @@ void test_native_e2ap_reset_response() { srsran::unique_byte_buffer_t buf = srsran::make_byte_buffer(); e2_ap_pdu_c pdu, pdu2; - e2ap e2ap_; + srslog::basic_logger& logger = srslog::fetch_basic_logger("E2AP"); + dummy_metrics_interface dummy_metrics; + e2ap e2ap_(logger, &dummy_metrics); pdu = e2ap_.generate_reset_response(); asn1::bit_ref bref(buf->msg, buf->get_tailroom()); @@ -204,4 +208,4 @@ int main() test_native_e2ap_reset_response(); // call reset test functions here return 0; -} \ No newline at end of file +}