提交 1f600bb6 编写于 作者: S Shengliang Guan

TD-10431 rename test file

上级 333cbe6f
......@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "dndTestDeploy.h"
#include "deploy.h"
void initLog(char *path) {
mDebugFlag = 207;
......
......@@ -2,8 +2,8 @@ add_executable(dndTest01 "")
target_sources(dndTest01
PRIVATE
"dndTest01.cpp"
"../util/dndTestDeploy.cpp"
"test01.cpp"
"../sut/deploy.cpp"
)
target_link_libraries(
......@@ -18,7 +18,7 @@ target_include_directories(dndTest01
PUBLIC
"${CMAKE_SOURCE_DIR}/include/server/dnode/mgmt"
"${CMAKE_CURRENT_SOURCE_DIR}/../../inc"
"${CMAKE_CURRENT_SOURCE_DIR}/../util"
"${CMAKE_CURRENT_SOURCE_DIR}/../sut"
)
enable_testing()
......
......@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "dndTestDeploy.h"
#include "deploy.h"
class DndTest01 : public ::testing::Test {
protected:
......@@ -44,7 +44,7 @@ TEST_F(DndTest01, connectMsg) {
sendMsg(pClient, &rpcMsg);
SConnectRsp* pRsp = (SConnectRsp*)pClient->pRsp->pCont;
ASSERT(pRsp);
ASSERT_NE(pRsp, nullptr);
pRsp->acctId = htonl(pRsp->acctId);
pRsp->clusterId = htonl(pRsp->clusterId);
pRsp->connId = htonl(pRsp->connId);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册