Skip to content

Commit

Permalink
Fix condition when stopping test servers
Browse files Browse the repository at this point in the history
It was broken for solr; the same condition is used for Redis as well,
for consistency.
  • Loading branch information
eikek committed Feb 7, 2024
1 parent 1373f5d commit 32427e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion project/RedisServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ class RedisServer(module: String, port: Int) {
}

def stop(): Unit =
if (!skipServer && wasStartedHere.get()) {
if (skipServer || !wasStartedHere.get()) ()
else {
println(s"Stopping Redis container for '$module'")
stopCmd.!!
()
Expand Down
2 changes: 1 addition & 1 deletion project/SolrServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class SolrServer(module: String, port: Int) {
}

def stop(): Unit =
if (!skipServer && !wasStartedHere.get()) ()
if (skipServer || !wasStartedHere.get()) ()
else {
println(s"Stopping Solr container for '$module'")
stopCmd.!!
Expand Down

0 comments on commit 32427e7

Please sign in to comment.