aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala2
-rw-r--r--tests/src/test/scala/com/softwaremill/sttp/StreamingTests.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala b/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala
index a2b9505..18ff6ae 100644
--- a/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala
+++ b/tests/src/test/scala/com/softwaremill/sttp/BasicTests.scala
@@ -210,7 +210,7 @@ class BasicTests
implicit backend: SttpBackend[R, Nothing],
forceResponse: ForceWrappedValue[R]): Unit = {
- closeBackends = backend.close _ :: closeBackends
+ closeBackends = (() => backend.close()) :: closeBackends
val postEcho = sttp.post(uri"$endpoint/echo")
val testBody = "this is the body"
diff --git a/tests/src/test/scala/com/softwaremill/sttp/StreamingTests.scala b/tests/src/test/scala/com/softwaremill/sttp/StreamingTests.scala
index 018c3ab..f7faf64 100644
--- a/tests/src/test/scala/com/softwaremill/sttp/StreamingTests.scala
+++ b/tests/src/test/scala/com/softwaremill/sttp/StreamingTests.scala
@@ -43,7 +43,7 @@ class StreamingTests
testStreamingBackend: TestStreamingBackend[R, S]): Unit = {
import testStreamingBackend._
- closeBackends = backend.close _ :: closeBackends
+ closeBackends = (() => backend.close()) :: closeBackends
name should "stream request body" in {
val response = sttp