/*
==================================================================================
- 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.
#include "xapp.hpp"
#define HC_MSG_SIZE 512
+
using namespace std;
TEST(Xapp, RMRHealthCheck){
std::unique_ptr<XappRmr> rmr;
rmr = std::make_unique<XappRmr>("4560",num_attempts);
- rmr->xapp_rmr_init();
+ rmr->xapp_rmr_init(true);
XappSettings config;
bool res = rmr->xapp_rmr_send(&hdr,(void*)strMsg);
usleep(1);
}
- sleep(10);
+ sleep(2);
hw_xapp->stop();
- sleep(10);
- };
+
+};
TEST(Xapp, A1HealthCheck){
std::unique_ptr<XappRmr> rmr;
rmr = std::make_unique<XappRmr>("4560",num_attempts);
- rmr->xapp_rmr_init();
+ rmr->xapp_rmr_init(true);
XappSettings config;
bool res_msg2 = rmr->xapp_rmr_send(&hdr,(void*)strMsg);
ASSERT_TRUE(res_msg2);
- sleep(10);
+ sleep(2);
hw_xapp->stop();
- sleep(10);
-
}