fix: 接口用例更新性能测试有断言报错

This commit is contained in:
chenjianxing 2021-08-06 10:00:48 +08:00 committed by jianxing
parent df95409edc
commit 88c7474770
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public class MsAssertions extends MsTestElement {
);
}
if (this.getDuration().isValid()) {
if (this.getDuration() != null && this.getDuration().isValid()) {
hashTree.add(durationAssertion(this.getDuration()));
}
}