Skip to content

Commit

Permalink
Changes to prevent fail on Scala 2.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
debasishg committed Apr 22, 2018
1 parent e14ed08 commit e76d9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/scala/com/redis/Patterns.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
}
Expand Down

0 comments on commit e76d9d6

Please sign in to comment.