Skip to content

Commit

Permalink
Merge pull request #16 from SwissDataScienceCenter/fix-test-servers
Browse files Browse the repository at this point in the history
Fix condition when stopping test servers
  • Loading branch information
eikek authored Feb 8, 2024
2 parents 1373f5d + 32427e7 commit 3270e18
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 3270e18

Please sign in to comment.