You are viewing a plain text version of this content. The canonical link for it is here.
Posted to geb-notifications@groovy.apache.org by pa...@apache.org on 2024/12/16 08:03:23 UTC

(groovy-geb) branch master updated: minor refactor: slightly more Groovy idiomatic

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git


The following commit(s) were added to refs/heads/master by this push:
     new 26d37f67 minor refactor: slightly more Groovy idiomatic
26d37f67 is described below

commit 26d37f67cdb4b232c3d57118d30bd9643fcee609
Author: Paul King <pa...@asert.com.au>
AuthorDate: Mon Dec 16 18:03:05 2024 +1000

    minor refactor: slightly more Groovy idiomatic
---
 .../src/test/groovy/geb/junit5/ParallelExecutionTest.groovy           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/geb-junit5/src/test/groovy/geb/junit5/ParallelExecutionTest.groovy b/module/geb-junit5/src/test/groovy/geb/junit5/ParallelExecutionTest.groovy
index da61247d..aff066c3 100644
--- a/module/geb-junit5/src/test/groovy/geb/junit5/ParallelExecutionTest.groovy
+++ b/module/geb-junit5/src/test/groovy/geb/junit5/ParallelExecutionTest.groovy
@@ -122,7 +122,7 @@ abstract class AbstractParallelExecutionWithReportingTest extends ConfigModifyin
         // again using a count down latch
         executionOfTestsCompleteLatch.await()
         CachingDriverFactory.clearCacheCache()
-        assert reportFileTestCounterPrefixes(clazz) == (1..4)*.toString()*.padLeft(3, "0")
+        assert reportFileTestCounterPrefixes(clazz) == '001'..'004'
     }
 
     @BeforeEach
@@ -133,7 +133,7 @@ abstract class AbstractParallelExecutionWithReportingTest extends ConfigModifyin
         assert setupCountDownLatch.await(30, SECONDS)
         baseUrl = "${clazz.callbackServerExtension.server.baseUrl}"
         config.cacheDriverPerThread = true
-        config.rawConfig.reportsDir = "${reportDir.absolutePath.replaceAll('\\\\', '\\\\\\\\')}"
+        config.rawConfig.reportsDir = reportDir.absolutePath.replaceAll($/\\/$, $/\\\\/$)
     }
 
     @AfterEach