Skip to content

Commit 952ab7c

Browse files
authored
fix macos getting stuck on tests
1 parent d955cbd commit 952ab7c

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/integration.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ jobs:
138138
otool -L ci-glfw/libglfw-ci.dylib
139139
140140
- name: Test with Gradle Wrapper
141+
timeout-minutes: 20
141142
env:
142143
JAVA_TOOL_OPTIONS: -Dorg.lwjgl.glfw.libname=${{ github.workspace }}/ci-glfw/libglfw-ci.dylib
143144
run: |
144-
./gradlew --no-daemon :jme3-screenshot-tests:screenshotTest
145+
./gradlew --no-daemon --info :jme3-screenshot-tests:screenshotTest
145146
146147
- name: Upload Test Reports
147148
uses: actions/upload-artifact@v4

jme3-screenshot-tests/src/main/java/org/jmonkeyengine/screenshottests/testframework/TestDriver.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,17 @@ public TestDriver(ScreenshotNoInputAppState screenshotAppState, Collection<Integ
126126
}
127127

128128
@Override
129-
public void update(float tpf){
129+
public void update(float tpf) {
130130
super.update(tpf);
131131

132-
if(framesToTakeScreenshotsOn.contains(tick)){
132+
if (framesToTakeScreenshotsOn.contains(tick)) {
133133
screenshotAppState.takeScreenshot();
134134
}
135-
if(tick >= tickToTerminateApp){
136-
getApplication().stop(true);
135+
136+
if (tick >= tickToTerminateApp) {
137137
waitLatch.countDown();
138+
getApplication().stop(false);
139+
return;
138140
}
139141

140142
tick++;

0 commit comments

Comments
 (0)