Skip to content

Commit

Permalink
Merge pull request #366 from arturaz/issue/364
Browse files Browse the repository at this point in the history
Add hmGet to the tests.
  • Loading branch information
gvolpe authored Sep 15, 2020
2 parents dfd5d76 + a53dd6b commit 55ebb86
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ trait TestScenarios {
def hashesScenario(cmd: RedisCommands[IO, String, String]): IO[Unit] = {
val testKey = "foo"
val testField = "bar"
val testField2 = "baz"
for {
x <- cmd.hGet(testKey, testField)
_ <- IO(assert(x.isEmpty))
Expand All @@ -70,6 +71,8 @@ trait TestScenarios {
_ <- IO(assert(!isSet2))
w <- cmd.hGet(testKey, testField)
_ <- IO(assert(w.contains("some value")))
w <- cmd.hmGet(testKey, testField, testField2)
_ <- IO(assert(w == Map(testField -> "some value")))
_ <- cmd.hDel(testKey, testField)
z <- cmd.hGet(testKey, testField)
_ <- IO(assert(z.isEmpty))
Expand Down

0 comments on commit 55ebb86

Please sign in to comment.