@@ -1325,15 +1325,15 @@ var _ = Describe("Commands", func() {
1325
1325
It ("should HIncrByFloat" , func () {
1326
1326
hSet := client .HSet ("hash" , "field" , "10.50" )
1327
1327
Expect (hSet .Err ()).NotTo (HaveOccurred ())
1328
- Expect (hSet .Val ()).To (Equal (true ))
1328
+ Expect (hSet .Val ()).To (Equal (int64 ( 1 ) ))
1329
1329
1330
1330
hIncrByFloat := client .HIncrByFloat ("hash" , "field" , 0.1 )
1331
1331
Expect (hIncrByFloat .Err ()).NotTo (HaveOccurred ())
1332
1332
Expect (hIncrByFloat .Val ()).To (Equal (10.6 ))
1333
1333
1334
1334
hSet = client .HSet ("hash" , "field" , "5.0e3" )
1335
1335
Expect (hSet .Err ()).NotTo (HaveOccurred ())
1336
- Expect (hSet .Val ()).To (Equal (false ))
1336
+ Expect (hSet .Val ()).To (Equal (int64 ( 0 ) ))
1337
1337
1338
1338
hIncrByFloat = client .HIncrByFloat ("hash" , "field" , 2.0e2 )
1339
1339
Expect (hIncrByFloat .Err ()).NotTo (HaveOccurred ())
@@ -1367,16 +1367,16 @@ var _ = Describe("Commands", func() {
1367
1367
})
1368
1368
1369
1369
It ("should HMGet" , func () {
1370
- err := client .HMSet ("hash" , "key1" , "hello1" , "key2" , "hello2" ).Err ()
1370
+ err := client .HSet ("hash" , "key1" , "hello1" , "key2" , "hello2" ).Err ()
1371
1371
Expect (err ).NotTo (HaveOccurred ())
1372
1372
1373
1373
vals , err := client .HMGet ("hash" , "key1" , "key2" , "_" ).Result ()
1374
1374
Expect (err ).NotTo (HaveOccurred ())
1375
1375
Expect (vals ).To (Equal ([]interface {}{"hello1" , "hello2" , nil }))
1376
1376
})
1377
1377
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 {}{
1380
1380
"key1" : "hello1" ,
1381
1381
"key2" : "hello2" ,
1382
1382
}).Result ()
@@ -1399,7 +1399,7 @@ var _ = Describe("Commands", func() {
1399
1399
It ("should HSet" , func () {
1400
1400
hSet := client .HSet ("hash" , "key" , "hello" )
1401
1401
Expect (hSet .Err ()).NotTo (HaveOccurred ())
1402
- Expect (hSet .Val ()).To (Equal (true ))
1402
+ Expect (hSet .Val ()).To (Equal (int64 ( 1 ) ))
1403
1403
1404
1404
hGet := client .HGet ("hash" , "key" )
1405
1405
Expect (hGet .Err ()).NotTo (HaveOccurred ())
0 commit comments