From e76d9d6d78bc1bd283e2cbcdb3046e4fdfad2807 Mon Sep 17 00:00:00 2001 From: Debasish Ghosh Date: Sun, 22 Apr 2018 20:36:23 +0530 Subject: [PATCH] Changes to prevent fail on Scala 2.10.x --- src/test/scala/com/redis/Patterns.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/scala/com/redis/Patterns.scala b/src/test/scala/com/redis/Patterns.scala index c7a3adf2..a292f8a0 100644 --- a/src/test/scala/com/redis/Patterns.scala +++ b/src/test/scala/com/redis/Patterns.scala @@ -24,7 +24,7 @@ object Patterns { def listPush(count: Int, key: String)(implicit clients: RedisClientPool) = { clients.withClient { client => (1 to count) foreach {i => client.rpush(key, i)} - assert(client.llen(key).contains(count)) + assert(client.llen(key) == Some(count)) } key } @@ -33,7 +33,7 @@ object Patterns { implicit val parseInt: Parse[Long] = Parse[Long](new String(_).toLong) clients.withClient { client => val list = (1 to count) map {_ => client.lpop[Long](key).get} - assert(client.llen(key).contains(0)) + assert(client.llen(key) == Some(0)) list.sum } }