We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e14ed08 commit e76d9d6Copy full SHA for e76d9d6
src/test/scala/com/redis/Patterns.scala
@@ -24,7 +24,7 @@ object Patterns {
24
def listPush(count: Int, key: String)(implicit clients: RedisClientPool) = {
25
clients.withClient { client =>
26
(1 to count) foreach {i => client.rpush(key, i)}
27
- assert(client.llen(key).contains(count))
+ assert(client.llen(key) == Some(count))
28
}
29
key
30
@@ -33,7 +33,7 @@ object Patterns {
33
implicit val parseInt: Parse[Long] = Parse[Long](new String(_).toLong)
34
35
val list = (1 to count) map {_ => client.lpop[Long](key).get}
36
- assert(client.llen(key).contains(0))
+ assert(client.llen(key) == Some(0))
37
list.sum
38
39
0 commit comments