X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Ftest_hc.h;h=d07fbfef036deaa05d9ad005c85eba9693b3c257;hb=aba0da8ee6f3ff9a2ecc5d0af793eab374a47f77;hp=cbb8726cff3e06921edffb3f0acd8624f6bf692d;hpb=65ac2f814cdd9dc0f71ee35868dc6c75a7f69d6a;p=ric-app%2Fhw.git diff --git a/test/test_hc.h b/test/test_hc.h index cbb8726..d07fbfe 100644 --- a/test/test_hc.h +++ b/test/test_hc.h @@ -1,7 +1,7 @@ /* ================================================================================== - Copyright (c) 2018-2019 AT&T Intellectual Property. + Copyright (c) 2019-2020 AT&T Intellectual Property. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -30,6 +30,7 @@ #include "xapp.hpp" #define HC_MSG_SIZE 512 + using namespace std; TEST(Xapp, RMRHealthCheck){ @@ -38,7 +39,7 @@ TEST(Xapp, RMRHealthCheck){ std::unique_ptr rmr; rmr = std::make_unique("4560",num_attempts); - rmr->xapp_rmr_init(); + rmr->xapp_rmr_init(true); XappSettings config; @@ -61,10 +62,10 @@ TEST(Xapp, RMRHealthCheck){ bool res = rmr->xapp_rmr_send(&hdr,(void*)strMsg); usleep(1); } - sleep(10); + sleep(2); hw_xapp->stop(); - sleep(10); - }; + +}; TEST(Xapp, A1HealthCheck){ @@ -80,7 +81,7 @@ TEST(Xapp, A1HealthCheck){ std::unique_ptr rmr; rmr = std::make_unique("4560",num_attempts); - rmr->xapp_rmr_init(); + rmr->xapp_rmr_init(true); XappSettings config; @@ -106,8 +107,6 @@ TEST(Xapp, A1HealthCheck){ bool res_msg2 = rmr->xapp_rmr_send(&hdr,(void*)strMsg); ASSERT_TRUE(res_msg2); - sleep(10); + sleep(2); hw_xapp->stop(); - sleep(10); - }