@@ -23,7 +23,7 @@ import (
23
23
"testing"
24
24
"time"
25
25
26
- "github.com/mreiferson/go-snappystream "
26
+ "github.com/golang/snappy "
27
27
"github.com/nsqio/go-nsq"
28
28
"github.com/nsqio/nsq/internal/protocol"
29
29
"github.com/nsqio/nsq/internal/test"
@@ -1112,15 +1112,15 @@ func TestSnappy(t *testing.T) {
1112
1112
test .Nil (t , err )
1113
1113
test .Equal (t , true , r .Snappy )
1114
1114
1115
- compressConn := snappystream .NewReader (conn , snappystream . SkipVerifyChecksum )
1115
+ compressConn := snappy .NewReader (conn )
1116
1116
resp , _ := nsq .ReadResponse (compressConn )
1117
1117
frameType , data , _ := nsq .UnpackResponse (resp )
1118
1118
t .Logf ("frameType: %d, data: %s" , frameType , data )
1119
1119
test .Equal (t , frameTypeResponse , frameType )
1120
1120
test .Equal (t , []byte ("OK" ), data )
1121
1121
1122
1122
msgBody := make ([]byte , 128000 )
1123
- w := snappystream .NewWriter (conn )
1123
+ w := snappy .NewWriter (conn )
1124
1124
1125
1125
rw := readWriter {compressConn , w }
1126
1126
@@ -1308,7 +1308,7 @@ func TestTLSSnappy(t *testing.T) {
1308
1308
test .Equal (t , frameTypeResponse , frameType )
1309
1309
test .Equal (t , []byte ("OK" ), data )
1310
1310
1311
- compressConn := snappystream .NewReader (tlsConn , snappystream . SkipVerifyChecksum )
1311
+ compressConn := snappy .NewReader (tlsConn )
1312
1312
1313
1313
resp , _ = nsq .ReadResponse (compressConn )
1314
1314
frameType , data , _ = nsq .UnpackResponse (resp )
0 commit comments