Skip to content

Commit a27b47c

Browse files
matreiJonasPammer
authored andcommitted
chore: cleanup
1 parent 0b1929f commit a27b47c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

grails-geb/src/testFixtures/groovy/grails/plugin/geb/GebRecordingTestListener.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
*/
1919
package grails.plugin.geb
2020

21-
import com.github.dockerjava.api.exception.NotFoundException
2221
import groovy.transform.CompileStatic
2322
import groovy.util.logging.Slf4j
23+
24+
import com.github.dockerjava.api.exception.NotFoundException
2425
import org.spockframework.runtime.AbstractRunListener
2526
import org.spockframework.runtime.model.ErrorInfo
2627
import org.spockframework.runtime.model.IterationInfo

grails-geb/src/testFixtures/groovy/grails/plugin/geb/GrailsContainerGebExtension.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ class GrailsContainerGebExtension implements IGlobalExtension {
107107

108108
spec.allFeatures*.addIterationInterceptor { invocation ->
109109
holder.restartVncRecordingContainer()
110-
111110
holder.testManager.beforeTest(invocation.instance.getClass(), invocation.iteration.displayName)
112111
try {
113112
invocation.proceed()

grails-geb/src/testFixtures/groovy/grails/plugin/geb/WebDriverContainerHolder.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ class WebDriverContainerHolder {
271271

272272
VncRecordingContainer vncContainer = vncRecordingContainerField.get(currentContainer) as VncRecordingContainer
273273

274-
if (vncContainer != null) {
274+
if (vncContainer) {
275275
// Stop the current VNC recording container
276276
vncContainer.stop()
277277
// Create and start a new VNC recording container for the next test
@@ -282,7 +282,7 @@ class WebDriverContainerHolder {
282282
vncRecordingContainerField.set(currentContainer, newVncContainer)
283283
newVncContainer.start()
284284

285-
log.debug("Successfully restarted VNC recording container")
285+
log.debug('Successfully restarted VNC recording container')
286286
}
287287
} catch (Exception e) {
288288
log.warn("Failed to restart VNC recording container: ${e.message}", e)

0 commit comments

Comments
 (0)