Skip to content

Commit 485d5a4

Browse files
fixed eclipse tests freezes
increased swt bot wait time of tests
1 parent a53b75d commit 485d5a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cobigen-eclipse/cobigen-eclipse-test/src/main/java/com/devonfw/cobigen/eclipse/test/OpenAPITest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void testBasicOpenAPIGeneration() throws Exception {
8080
// execute CobiGen
8181
EclipseCobiGenUtils.processCobiGenAndPostponeUpgrade(bot, javaClassItem, "CRUD REST services");
8282
// increase timeout as the openAPI parser is slow on initialization
83-
EclipseCobiGenUtils.confirmSuccessfullGeneration(bot, 40000);
83+
EclipseCobiGenUtils.confirmSuccessfullGeneration(bot, 120000);
8484

8585
// check assertions
8686
bot.waitUntil(new AllJobsAreFinished(), 10000);

cobigen-eclipse/cobigen-eclipse-test/src/main/java/com/devonfw/cobigen/eclipse/test/common/utils/EclipseCobiGenUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public static void processCobiGenWithTextInput(SWTWorkbenchBot bot, SWTBotEclips
165165
bot.waitUntil(new AllJobsAreFinished(), defaultTimeout); // build might take some time
166166
input.contextMenu("CobiGen").menu("Generate...").click();
167167
postponeUpgradeAndContinue(bot);
168-
generateWithSelectedIncrements(bot, defaultTimeout, increments);
168+
generateWithSelectedIncrements(bot, 120000, increments);
169169
}
170170

171171
/**
@@ -216,7 +216,7 @@ private static void processCobiGenAndPostponeUpgrade(SWTWorkbenchBot bot, SWTBot
216216
bot.waitUntil(new AllJobsAreFinished(), defaultTimeout); // build might take some time
217217
input.contextMenu("CobiGen").menu("Generate...").click();
218218
postponeUpgradeAndContinue(bot);
219-
generateWithSelectedIncrements(bot, defaultTimeout, increments);
219+
generateWithSelectedIncrements(bot, 120000, increments);
220220
}
221221

222222
/**

0 commit comments

Comments
 (0)