From f2ba9349fcce0deafb19e6d47b592c26cc46c90d Mon Sep 17 00:00:00 2001 From: adamw Date: Wed, 8 Jan 2025 11:34:38 +0100 Subject: [PATCH] fix for 2.12 --- .../scala/sttp/client4/caching/CachingBackendTest.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/caching/src/test/scala/sttp/client4/caching/CachingBackendTest.scala b/caching/src/test/scala/sttp/client4/caching/CachingBackendTest.scala index 90231f7d7..0874362b5 100644 --- a/caching/src/test/scala/sttp/client4/caching/CachingBackendTest.scala +++ b/caching/src/test/scala/sttp/client4/caching/CachingBackendTest.scala @@ -26,7 +26,7 @@ class CachingBackendTest extends AnyFlatSpec with Matchers { def timePassed(seconds: Int): Unit = { now += seconds - storage.filterInPlace { case (_, (_, ttl)) => ttl >= now } + storage = storage.filter { case (_, (_, ttl)) => ttl >= now } } override def get(key: Array[Byte]): Option[Array[Byte]] = storage.get(key.toList).map(_._1) @@ -82,11 +82,11 @@ class CachingBackendTest extends AnyFlatSpec with Matchers { responseC.body shouldBe responseA.body // D: request to another endpoint - val _ = cachingBackend.send(request2) + cachingBackend.send(request2) invocationCounter shouldBe 3 // E: another request to another endpoint, which shouldn't be cached - val _ = cachingBackend.send(request2) + cachingBackend.send(request2) invocationCounter shouldBe 4 }