mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Allowing for running tests on a port other than the fixed 6380 (#2466)
* Allowing for redis on a specified port * updating the readme --------- Co-authored-by: Vladimir Mihailenco <vladimir.webdev@gmail.com> Co-authored-by: Monkey <golang@88.com>
This commit is contained in:
@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"testing"
|
||||
"time"
|
||||
@ -64,7 +65,7 @@ var _ = Describe("Client", func() {
|
||||
})
|
||||
|
||||
It("should Stringer", func() {
|
||||
Expect(client.String()).To(Equal("Redis<:6380 db:15>"))
|
||||
Expect(client.String()).To(Equal(fmt.Sprintf("Redis<:%s db:15>", redisPort)))
|
||||
})
|
||||
|
||||
It("supports context", func() {
|
||||
|
Reference in New Issue
Block a user