Skip to content

Commit bc9d44d

Browse files
author
rathnapandi
committed
- Fix integration tests
1 parent 1ad354c commit bc9d44d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎modules/apis/src/test/java/com/axway/apim/export/test/basic/SimpleAPIExportTestIT.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.io.IOException;
2424
import java.nio.file.Files;
2525

26+
import static org.citrusframework.actions.SleepAction.Builder.sleep;
2627
import static org.citrusframework.dsl.DefaultTestActionBuilder.action;
2728
import static org.citrusframework.actions.EchoAction.Builder.echo;
2829
import static org.citrusframework.json.dsl.JsonPathSupport.jsonPath;
@@ -84,7 +85,7 @@ public void run(@Optional @CitrusResource TestContext context) throws IOExceptio
8485
variable("expectedReturnCode", "0");
8586
variable("useFEAPIDefinition", "true"); // In this case we simulate to export the FE-API-Definition instead of the backend
8687
swaggerExport.doExecute(context);
87-
88+
$(sleep().seconds(10));
8889
String exportedAPIConfigFile = context.getVariable("exportLocation") + "/" + context.getVariable("exportFolder") + "/api-config.json";
8990
$(echo("####### Reading exported API-Config file: '" + exportedAPIConfigFile + "' #######"));
9091
JsonNode exportedAPIConfig = mapper.readTree(Files.newInputStream(new File(exportedAPIConfigFile).toPath()));

0 commit comments

Comments
 (0)