@@ -1325,15 +1325,15 @@ var _ = Describe("Commands", func() {
13251325 It ("should HIncrByFloat" , func () {
13261326 hSet := client .HSet ("hash" , "field" , "10.50" )
13271327 Expect (hSet .Err ()).NotTo (HaveOccurred ())
1328- Expect (hSet .Val ()).To (Equal (true ))
1328+ Expect (hSet .Val ()).To (Equal (int64 ( 1 ) ))
13291329
13301330 hIncrByFloat := client .HIncrByFloat ("hash" , "field" , 0.1 )
13311331 Expect (hIncrByFloat .Err ()).NotTo (HaveOccurred ())
13321332 Expect (hIncrByFloat .Val ()).To (Equal (10.6 ))
13331333
13341334 hSet = client .HSet ("hash" , "field" , "5.0e3" )
13351335 Expect (hSet .Err ()).NotTo (HaveOccurred ())
1336- Expect (hSet .Val ()).To (Equal (false ))
1336+ Expect (hSet .Val ()).To (Equal (int64 ( 0 ) ))
13371337
13381338 hIncrByFloat = client .HIncrByFloat ("hash" , "field" , 2.0e2 )
13391339 Expect (hIncrByFloat .Err ()).NotTo (HaveOccurred ())
@@ -1367,16 +1367,16 @@ var _ = Describe("Commands", func() {
13671367 })
13681368
13691369 It ("should HMGet" , func () {
1370- err := client .HMSet ("hash" , "key1" , "hello1" , "key2" , "hello2" ).Err ()
1370+ err := client .HSet ("hash" , "key1" , "hello1" , "key2" , "hello2" ).Err ()
13711371 Expect (err ).NotTo (HaveOccurred ())
13721372
13731373 vals , err := client .HMGet ("hash" , "key1" , "key2" , "_" ).Result ()
13741374 Expect (err ).NotTo (HaveOccurred ())
13751375 Expect (vals ).To (Equal ([]interface {}{"hello1" , "hello2" , nil }))
13761376 })
13771377
1378- It ("should HMSet " , func () {
1379- ok , err := client .HMSet ("hash" , map [string ]interface {}{
1378+ It ("should HSet " , func () {
1379+ ok , err := client .HSet ("hash" , map [string ]interface {}{
13801380 "key1" : "hello1" ,
13811381 "key2" : "hello2" ,
13821382 }).Result ()
@@ -1399,7 +1399,7 @@ var _ = Describe("Commands", func() {
13991399 It ("should HSet" , func () {
14001400 hSet := client .HSet ("hash" , "key" , "hello" )
14011401 Expect (hSet .Err ()).NotTo (HaveOccurred ())
1402- Expect (hSet .Val ()).To (Equal (true ))
1402+ Expect (hSet .Val ()).To (Equal (int64 ( 1 ) ))
14031403
14041404 hGet := client .HGet ("hash" , "key" )
14051405 Expect (hGet .Err ()).NotTo (HaveOccurred ())
0 commit comments