@@ -1367,9 +1367,7 @@ var _ = Describe("Commands", func() {
13671367 })
13681368
13691369 It ("should HMGet" , func () {
1370- err := client .HSet ("hash" , "key1" , "hello1" ).Err ()
1371- Expect (err ).NotTo (HaveOccurred ())
1372- err = client .HSet ("hash" , "key2" , "hello2" ).Err ()
1370+ err := client .HMSet ("hash" , "key1" , "hello1" , "key2" , "hello2" ).Err ()
13731371 Expect (err ).NotTo (HaveOccurred ())
13741372
13751373 vals , err := client .HMGet ("hash" , "key1" , "key2" , "_" ).Result ()
@@ -1383,7 +1381,7 @@ var _ = Describe("Commands", func() {
13831381 "key2" : "hello2" ,
13841382 }).Result ()
13851383 Expect (err ).NotTo (HaveOccurred ())
1386- Expect (ok ).To (Equal (int64 (3 )))
1384+ Expect (ok ).To (Equal (int64 (2 )))
13871385
13881386 v , err := client .HGet ("hash" , "key1" ).Result ()
13891387 Expect (err ).NotTo (HaveOccurred ())
@@ -1392,6 +1390,10 @@ var _ = Describe("Commands", func() {
13921390 v , err = client .HGet ("hash" , "key2" ).Result ()
13931391 Expect (err ).NotTo (HaveOccurred ())
13941392 Expect (v ).To (Equal ("hello2" ))
1393+
1394+ keys , err := client .HKeys ("hash" ).Result ()
1395+ Expect (err ).NotTo (HaveOccurred ())
1396+ Expect (keys ).To (ConsistOf ([]string {"key1" , "key2" }))
13951397 })
13961398
13971399 It ("should HSet" , func () {
0 commit comments