From 0370e4e230254d03a6cbbef1af20045228dbc563 Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Fri, 7 Jun 2024 07:48:27 +0100 Subject: [PATCH] Run tests on Java 21 --- .github/workflows/maven.yml | 2 +- .../java/org/apache/batik/test/PerformanceTestValidator.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 032cf8e515..4c818c4c72 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - jdk: ['8', '11', '17'] + jdk: ['8', '11', '17', '21'] os: [ubuntu-latest, windows-latest] steps: diff --git a/batik-test/src/main/java/org/apache/batik/test/PerformanceTestValidator.java b/batik-test/src/main/java/org/apache/batik/test/PerformanceTestValidator.java index 8629d4facb..2b58e6eea7 100644 --- a/batik-test/src/main/java/org/apache/batik/test/PerformanceTestValidator.java +++ b/batik-test/src/main/java/org/apache/batik/test/PerformanceTestValidator.java @@ -72,7 +72,7 @@ public TestReport runImpl() throws Exception { return result; } - p.setReferenceScore(score*2); + p.setReferenceScore(score*4); r = p.run(); assertTrue(!r.hasPassed()); if (!r.getErrorCode().equals("unexpected.performance.improvement")) {