forked from mirror/redis
Merge pull request #883 from andriikushch/master
fix some linter's warning
This commit is contained in:
commit
77f7b88603
|
@ -208,11 +208,11 @@ func startCluster(scenario *clusterScenario) error {
|
|||
}
|
||||
|
||||
func assertSlotsEqual(slots, wanted []redis.ClusterSlot) error {
|
||||
outer_loop:
|
||||
outerLoop:
|
||||
for _, s2 := range wanted {
|
||||
for _, s1 := range slots {
|
||||
if slotEqual(s1, s2) {
|
||||
continue outer_loop
|
||||
continue outerLoop
|
||||
}
|
||||
}
|
||||
return fmt.Errorf("%v not found in %v", s2, slots)
|
||||
|
|
|
@ -1958,7 +1958,7 @@ var _ = Describe("Commands", func() {
|
|||
|
||||
sMembersMap := client.SMembersMap("set")
|
||||
Expect(sMembersMap.Err()).NotTo(HaveOccurred())
|
||||
Expect(sMembersMap.Val()).To(Equal(map[string]struct{}{"Hello": struct{}{}, "World": struct{}{}}))
|
||||
Expect(sMembersMap.Val()).To(Equal(map[string]struct{}{"Hello": {}, "World": {}}))
|
||||
})
|
||||
|
||||
It("should SMove", func() {
|
||||
|
|
|
@ -2,16 +2,11 @@ package proto_test
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/go-redis/redis/internal/proto"
|
||||
)
|
||||
|
||||
func newReader(s string) *proto.Reader {
|
||||
return proto.NewReader(strings.NewReader(s))
|
||||
}
|
||||
|
||||
func BenchmarkReader_ParseReply_Status(b *testing.B) {
|
||||
benchmarkParseReply(b, "+OK\r\n", nil, false)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue