Skip to content

Commit 57720d3

Browse files
author
Yang Guo
committed
fix failure unit test since num of env variables been changed
1 parent 25d035d commit 57720d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

platform-api/src/test/java/com/flow/platform/api/test/integration/GitWebhookTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private Node init_flow(String gitUrl) throws Throwable {
306306
Node loaded = nodeService.find(flowPath).root();
307307

308308
Assert.assertNotNull(loaded);
309-
Assert.assertEquals(12, loaded.getEnvs().size());
309+
Assert.assertEquals(13, loaded.getEnvs().size());
310310
Assert.assertEquals(FlowEnvs.YmlStatusValue.FOUND.value(), loaded.getEnv(FlowEnvs.FLOW_YML_STATUS));
311311

312312
return loaded;

platform-api/src/test/java/com/flow/platform/api/test/service/EnvServiceTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ public void should_list_env() {
9494

9595
// then: check the flow actual envs size
9696
Node flow = nodeService.find(node.getPath()).root();
97-
Assert.assertEquals(10, flow.getEnvs().size());
97+
Assert.assertEquals(11, flow.getEnvs().size());
9898

9999
// when: list none editable only which from copied node envs
100100
Map<String, String> noneEditable = envService.list(node, false);
101-
Assert.assertEquals(8, noneEditable.size());
101+
Assert.assertEquals(9, noneEditable.size());
102102
Assert.assertTrue(noneEditable.containsKey(FLOW_STATUS.name()));
103103
Assert.assertTrue(noneEditable.containsKey(FLOW_YML_STATUS.name()));
104104
Assert.assertTrue(noneEditable.containsKey(FLOW_GIT_WEBHOOK.name()));
105105

106106
// then: check the actual flow envs size not changed
107-
Assert.assertEquals(10, flow.getEnvs().size());
107+
Assert.assertEquals(11, flow.getEnvs().size());
108108
}
109109
}

0 commit comments

Comments
 (0)