Skip to content

Commit

Permalink
feedback - add back isInitialized helper
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty committed Nov 24, 2024
1 parent fdc7f20 commit 268b341
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ abstract class ContainerGebSpec extends Specification implements ManagedGebTest,

@PackageScope
void initialize() {
if (webDriverContainer) {
if (initialized) {
return
}

Expand Down Expand Up @@ -158,4 +158,8 @@ abstract class ContainerGebSpec extends Specification implements ManagedGebTest,
private boolean isHostNameChanged() {
return hostNameFromContainer != DEFAULT_HOSTNAME_FROM_CONTAINER
}

private boolean isInitialized() {
webDriverContainer == null
}
}

0 comments on commit 268b341

Please sign in to comment.