TD-10431 rename test file
This commit is contained in:
parent
333cbe6f2e
commit
1f600bb6bb
|
@ -13,7 +13,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dndTestDeploy.h"
|
#include "deploy.h"
|
||||||
|
|
||||||
void initLog(char *path) {
|
void initLog(char *path) {
|
||||||
mDebugFlag = 207;
|
mDebugFlag = 207;
|
|
@ -2,8 +2,8 @@ add_executable(dndTest01 "")
|
||||||
|
|
||||||
target_sources(dndTest01
|
target_sources(dndTest01
|
||||||
PRIVATE
|
PRIVATE
|
||||||
"dndTest01.cpp"
|
"test01.cpp"
|
||||||
"../util/dndTestDeploy.cpp"
|
"../sut/deploy.cpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
|
@ -18,7 +18,7 @@ target_include_directories(dndTest01
|
||||||
PUBLIC
|
PUBLIC
|
||||||
"${CMAKE_SOURCE_DIR}/include/server/dnode/mgmt"
|
"${CMAKE_SOURCE_DIR}/include/server/dnode/mgmt"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../../inc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/../../inc"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../util"
|
"${CMAKE_CURRENT_SOURCE_DIR}/../sut"
|
||||||
)
|
)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dndTestDeploy.h"
|
#include "deploy.h"
|
||||||
|
|
||||||
class DndTest01 : public ::testing::Test {
|
class DndTest01 : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
|
@ -44,7 +44,7 @@ TEST_F(DndTest01, connectMsg) {
|
||||||
sendMsg(pClient, &rpcMsg);
|
sendMsg(pClient, &rpcMsg);
|
||||||
|
|
||||||
SConnectRsp* pRsp = (SConnectRsp*)pClient->pRsp->pCont;
|
SConnectRsp* pRsp = (SConnectRsp*)pClient->pRsp->pCont;
|
||||||
ASSERT(pRsp);
|
ASSERT_NE(pRsp, nullptr);
|
||||||
pRsp->acctId = htonl(pRsp->acctId);
|
pRsp->acctId = htonl(pRsp->acctId);
|
||||||
pRsp->clusterId = htonl(pRsp->clusterId);
|
pRsp->clusterId = htonl(pRsp->clusterId);
|
||||||
pRsp->connId = htonl(pRsp->connId);
|
pRsp->connId = htonl(pRsp->connId);
|
Loading…
Reference in New Issue