fix(接口测试): 修复引用步骤等待控制器未生效问题

--bug=1024135 --user=赵勇 【接口测试】场景中引用的用例,添加等待时间无效 https://www.tapd.cn/55049933/s/1347613

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2023-03-09 16:57:07 +08:00 committed by fit2-zhao
parent 5b220beb65
commit 5f2d8c3c79
1 changed files with 2 additions and 1 deletions

View File

@ -429,7 +429,8 @@ public class ElementUtil {
Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(MsTestElement::getId))),
ArrayList::new));
element.setHashTree((LinkedList<MsTestElement>) sourceList);
element.getHashTree().clear();
element.getHashTree().addAll(sourceList);
} catch (Exception e) {
element.setHashTree(targetHashTree);
}