Skip to content

Commit

Permalink
fix ubuntu headless test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasstarsz committed Oct 25, 2021
1 parent f42e921 commit a4d55e5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@
import tech.fastj.math.Maths;
import tech.fastj.math.Point;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import unittest.EnvironmentHelper;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assumptions.assumeFalse;

class EngineConfigTests {

@BeforeAll
public static void onlyRunIfNotHeadless() {
assumeFalse(EnvironmentHelper.IsEnvironmentHeadless);
}

@Test
void checkEngineConfigDefaults_shouldMatchEngineDefaults() {
assertEquals(FastJEngine.DefaultFPS, EngineConfig.Default.targetFPS(), "The default engine config FPS should match the default FPS.");
Expand Down

0 comments on commit a4d55e5

Please sign in to comment.