fix(接口测试): 修复导入接口断言为空的缺陷

--bug=1025478 --user=王孝刚 【接口测试】导出api-再次导入到ms-断言数据全部缺失
https://www.tapd.cn/55049933/s/1363555
This commit is contained in:
wxg0103 2023-04-17 18:20:20 +08:00 committed by xiaomeinvG
parent d4b99bdd43
commit e6a12a2014
1 changed files with 0 additions and 2 deletions

View File

@ -1223,7 +1223,6 @@ public class ApiDefinitionService {
createCase = true; createCase = true;
} }
msHTTPSamplerProxy.setId(apiDefinition.getId()); msHTTPSamplerProxy.setId(apiDefinition.getId());
msHTTPSamplerProxy.setHashTree(new LinkedList<>());
apiDefinition.setRequest(JSONObject.toJSONString(msHTTPSamplerProxy)); apiDefinition.setRequest(JSONObject.toJSONString(msHTTPSamplerProxy));
return createCase; return createCase;
} }
@ -1242,7 +1241,6 @@ public class ApiDefinitionService {
createCase = true; createCase = true;
} }
tcpSampler.setId(apiDefinition.getId()); tcpSampler.setId(apiDefinition.getId());
tcpSampler.setHashTree(new LinkedList<>());
apiDefinition.setRequest(JSONObject.toJSONString(tcpSampler)); apiDefinition.setRequest(JSONObject.toJSONString(tcpSampler));
return createCase; return createCase;
} }