mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
Merge branch 'master' into dev
# Conflicts: # pom.xml
This commit is contained in:
@@ -65,6 +65,8 @@ public abstract class MaxWaitTimeOperator extends BaseOperator<Condition> {
|
||||
timeoutCondition.addExecutable(executable);
|
||||
timeoutCondition.setMaxWaitTime(maxWaitTime);
|
||||
timeoutCondition.setMaxWaitTimeUnit(getMaxWaitTimeUnit());
|
||||
timeoutCondition.setId(executable.getId());
|
||||
timeoutCondition.setTag(executable.getTag());
|
||||
return timeoutCondition;
|
||||
}
|
||||
|
||||
|
||||
@@ -111,6 +111,11 @@ public class MaxWaitSecondsELSpringbootTest extends BaseTest {
|
||||
assertNotTimeout("switch2");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSwitch3() {
|
||||
assertNotTimeout("switch3");
|
||||
}
|
||||
|
||||
// 测试 IF 的超时情况
|
||||
@Test
|
||||
public void testIf1() {
|
||||
|
||||
@@ -62,6 +62,11 @@
|
||||
SWITCH(s).TO(a, b).maxWaitSeconds(3);
|
||||
</chain>
|
||||
|
||||
<chain name="switch3">
|
||||
<!-- 不超时 -->
|
||||
SWITCH(s).TO(a.maxWaitSeconds(3), b.maxWaitSeconds(2));
|
||||
</chain>
|
||||
|
||||
<!-- 条件编排测试 -->
|
||||
<!-- f 返回 true -->
|
||||
<chain name="if1">
|
||||
|
||||
3
pom.xml
3
pom.xml
@@ -39,7 +39,7 @@
|
||||
</scm>
|
||||
|
||||
<properties>
|
||||
<revision>2.12.4.2</revision>
|
||||
<revision>2.12.4.3</revision>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
@@ -374,7 +374,6 @@
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>3.7.1</version>
|
||||
</plugin>
|
||||
|
||||
<!-- Javadoc -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
||||
Reference in New Issue
Block a user