Skip to content

Commit

Permalink
Add parentheses to shutdown invocations where missing
Browse files Browse the repository at this point in the history
  • Loading branch information
magro committed May 2, 2015
1 parent bdbfa66 commit 5fb55a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -79,7 +79,7 @@ class AsyncSolrClientIntegrationSpec extends FunSpec with RunningSolr with Befor
solrServers(0).status should be (Disabled)
}

solr.shutdown
solr.shutdown()
}

it("should be built with LoadBalancer") {
Expand Down
4 changes: 2 additions & 2 deletions src/test/scala/io/ino/solrs/AsyncSolrClientSpec.scala
Expand Up @@ -33,7 +33,7 @@ class AsyncSolrClientSpec extends FunSpec with Matchers with FutureAwaits with M
override def createHttpClient = ahcMock
}.build

solr.shutdown
solr.shutdown()

verify(ahcMock).closeAsynchronously()
}
Expand All @@ -42,7 +42,7 @@ class AsyncSolrClientSpec extends FunSpec with Matchers with FutureAwaits with M
val ahcMock = mock[AsyncHttpClient]
val solr = AsyncSolrClient.Builder("http://localhost:12345/solr").withHttpClient(ahcMock).build

solr.shutdown
solr.shutdown()

verify(ahcMock, times(0)).closeAsynchronously()
}
Expand Down
Expand Up @@ -56,7 +56,7 @@ class CloudSolrServersIntegrationSpec extends FunSpec with BeforeAndAfterAll wit
override def afterAll(configMap: ConfigMap) {
cloudSolrServer.shutdown()
cut.shutdown
solrs.values.foreach(_.shutdown)
solrs.values.foreach(_.shutdown())
solrRunners.foreach(_.stop())
zk.close()
}
Expand Down

0 comments on commit 5fb55a3

Please sign in to comment.