1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-14 01:21:30 +03:00

Use net.Conn instead of io.ReadWriteCloser.

This commit is contained in:
Vladimir Mihailenco
2012-08-20 14:46:41 +03:00
parent 9ad848d04b
commit f56748aab9
4 changed files with 11 additions and 13 deletions

View File

@ -3,7 +3,6 @@ package redis_test
import (
"bytes"
"fmt"
"io"
"net"
"runtime"
"sort"
@ -41,7 +40,7 @@ func sortStrings(slice []string) []string {
func (t *RedisTest) SetUpTest(c *C) {
if t.client == nil {
openConn := func() (io.ReadWriteCloser, error) {
openConn := func() (net.Conn, error) {
t.openedConnCount++
return net.Dial("tcp", redisAddr)
}
@ -49,7 +48,7 @@ func (t *RedisTest) SetUpTest(c *C) {
t.initedConnCount++
return nil
}
closeConn := func(conn io.ReadWriteCloser) error {
closeConn := func(conn net.Conn) error {
t.closedConnCount++
return nil
}