Skip to content

Commit e76d9d6

Browse files
committed
Changes to prevent fail on Scala 2.10.x
1 parent e14ed08 commit e76d9d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/scala/com/redis/Patterns.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ object Patterns {
2424
def listPush(count: Int, key: String)(implicit clients: RedisClientPool) = {
2525
clients.withClient { client =>
2626
(1 to count) foreach {i => client.rpush(key, i)}
27-
assert(client.llen(key).contains(count))
27+
assert(client.llen(key) == Some(count))
2828
}
2929
key
3030
}
@@ -33,7 +33,7 @@ object Patterns {
3333
implicit val parseInt: Parse[Long] = Parse[Long](new String(_).toLong)
3434
clients.withClient { client =>
3535
val list = (1 to count) map {_ => client.lpop[Long](key).get}
36-
assert(client.llen(key).contains(0))
36+
assert(client.llen(key) == Some(0))
3737
list.sum
3838
}
3939
}

0 commit comments

Comments
 (0)