Clean backport of a small test fix that should avoid some intermittent failures in the CI.
The mainline fix PR can be seen here: PR: https://git.openjdk.org/jdk/pull/19663 ------------- Commit messages: - Backport 81083a0e10d9c92f5247ae256e170709014b596b Changes: https://git.openjdk.org/jdk/pull/19717/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19717&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8299487 Stats: 11 lines in 1 file changed: 8 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/19717.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/19717/head:pull/19717 PR: https://git.openjdk.org/jdk/pull/19717