@@ -232,7 +232,6 @@ var _ = Describe("Commands", func() {
232
232
})
233
233
234
234
It ("should ClientSetInfo" , func () {
235
-
236
235
pipe := client .Pipeline ()
237
236
238
237
// Test setting the libName
@@ -413,7 +412,6 @@ var _ = Describe("Commands", func() {
413
412
})
414
413
415
414
It ("should filter commands by ACL category" , func () {
416
-
417
415
filter := & redis.FilterBy {
418
416
ACLCat : "admin" ,
419
417
}
@@ -580,7 +578,6 @@ var _ = Describe("Commands", func() {
580
578
n , err = client .Exists (ctx , "key" ).Result ()
581
579
Expect (err ).NotTo (HaveOccurred ())
582
580
Expect (n ).To (Equal (int64 (0 )))
583
-
584
581
})
585
582
586
583
It ("should Keys" , func () {
@@ -727,7 +724,6 @@ var _ = Describe("Commands", func() {
727
724
})
728
725
729
726
It ("should PExpireTime" , func () {
730
-
731
727
// The command returns -1 if the key exists but has no associated expiration time.
732
728
// The command returns -2 if the key does not exist.
733
729
pExpireTime := client .PExpireTime (ctx , "key" )
@@ -966,7 +962,6 @@ var _ = Describe("Commands", func() {
966
962
})
967
963
968
964
It ("should ExpireTime" , func () {
969
-
970
965
// The command returns -1 if the key exists but has no associated expiration time.
971
966
// The command returns -2 if the key does not exist.
972
967
expireTimeCmd := client .ExpireTime (ctx , "key" )
@@ -988,7 +983,6 @@ var _ = Describe("Commands", func() {
988
983
})
989
984
990
985
It ("should TTL" , func () {
991
-
992
986
// The command returns -1 if the key exists but has no associated expire
993
987
// The command returns -2 if the key does not exist.
994
988
ttl := client .TTL (ctx , "key" )
@@ -2042,7 +2036,6 @@ var _ = Describe("Commands", func() {
2042
2036
})
2043
2037
2044
2038
It ("should ACL LOG" , func () {
2045
-
2046
2039
err := client .Do (ctx , "acl" , "setuser" , "test" , ">test" , "on" , "allkeys" , "+get" ).Err ()
2047
2040
Expect (err ).NotTo (HaveOccurred ())
2048
2041
@@ -2073,7 +2066,6 @@ var _ = Describe("Commands", func() {
2073
2066
limitedLogEntries , err := client .ACLLog (ctx , 2 ).Result ()
2074
2067
Expect (err ).NotTo (HaveOccurred ())
2075
2068
Expect (len (limitedLogEntries )).To (Equal (2 ))
2076
-
2077
2069
})
2078
2070
2079
2071
It ("should ACL LOG RESET" , func () {
@@ -2087,7 +2079,6 @@ var _ = Describe("Commands", func() {
2087
2079
Expect (err ).NotTo (HaveOccurred ())
2088
2080
Expect (len (logEntries )).To (Equal (0 ))
2089
2081
})
2090
-
2091
2082
})
2092
2083
2093
2084
Describe ("hashes" , func () {
@@ -2699,7 +2690,6 @@ var _ = Describe("Commands", func() {
2699
2690
Expect (err ).NotTo (HaveOccurred ())
2700
2691
Expect (key ).To (Equal ("list2" ))
2701
2692
Expect (val ).To (Equal ([]string {"a" , "b" , "c" , "d" }))
2702
-
2703
2693
})
2704
2694
2705
2695
It ("should BLMPopBlocks" , func () {
@@ -2721,15 +2711,15 @@ var _ = Describe("Commands", func() {
2721
2711
case <- done :
2722
2712
Fail ("BLMPop is not blocked" )
2723
2713
case <- time .After (time .Second ):
2724
- //ok
2714
+ // ok
2725
2715
}
2726
2716
2727
2717
_ , err := client .LPush (ctx , "list_list" , "a" ).Result ()
2728
2718
Expect (err ).NotTo (HaveOccurred ())
2729
2719
2730
2720
select {
2731
2721
case <- done :
2732
- //ok
2722
+ // ok
2733
2723
case <- time .After (time .Second ):
2734
2724
Fail ("BLMPop is still blocked" )
2735
2725
}
@@ -4184,7 +4174,6 @@ var _ = Describe("Commands", func() {
4184
4174
})
4185
4175
4186
4176
It ("should ZMPop" , func () {
4187
-
4188
4177
err := client .ZAdd (ctx , "zset" , redis.Z {Score : 1 , Member : "one" }).Err ()
4189
4178
Expect (err ).NotTo (HaveOccurred ())
4190
4179
err = client .ZAdd (ctx , "zset" , redis.Z {Score : 2 , Member : "two" }).Err ()
@@ -4256,11 +4245,9 @@ var _ = Describe("Commands", func() {
4256
4245
Score : 6 ,
4257
4246
Member : "six" ,
4258
4247
}}))
4259
-
4260
4248
})
4261
4249
4262
4250
It ("should BZMPop" , func () {
4263
-
4264
4251
err := client .ZAdd (ctx , "zset" , redis.Z {Score : 1 , Member : "one" }).Err ()
4265
4252
Expect (err ).NotTo (HaveOccurred ())
4266
4253
err = client .ZAdd (ctx , "zset" , redis.Z {Score : 2 , Member : "two" }).Err ()
@@ -4360,15 +4347,15 @@ var _ = Describe("Commands", func() {
4360
4347
case <- done :
4361
4348
Fail ("BZMPop is not blocked" )
4362
4349
case <- time .After (time .Second ):
4363
- //ok
4350
+ // ok
4364
4351
}
4365
4352
4366
4353
err := client .ZAdd (ctx , "list_list" , redis.Z {Score : 1 , Member : "one" }).Err ()
4367
4354
Expect (err ).NotTo (HaveOccurred ())
4368
4355
4369
4356
select {
4370
4357
case <- done :
4371
- //ok
4358
+ // ok
4372
4359
case <- time .After (time .Second ):
4373
4360
Fail ("BZMPop is still blocked" )
4374
4361
}
@@ -6928,7 +6915,6 @@ var _ = Describe("Commands", func() {
6928
6915
6929
6916
close (started )
6930
6917
})
6931
-
6932
6918
})
6933
6919
6934
6920
Describe ("SlowLogGet" , func () {
@@ -6949,7 +6935,6 @@ var _ = Describe("Commands", func() {
6949
6935
Expect (len (result )).NotTo (BeZero ())
6950
6936
})
6951
6937
})
6952
-
6953
6938
})
6954
6939
6955
6940
type numberStruct struct {
0 commit comments