Skip to content

Commit 46fd037

Browse files
committed
fix tests
1 parent 9fde732 commit 46fd037

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

export_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func Messages(s LineSender) []byte {
7474

7575
func MsgCount(s LineSender) int {
7676
if ps, ok := s.(*pooledSender); ok {
77-
s = ps
77+
s = ps.wrapped
7878
}
7979
if hs, ok := s.(*httpLineSender); ok {
8080
return hs.MsgCount()
@@ -93,7 +93,7 @@ func MsgCount(s LineSender) int {
9393

9494
func BufLen(s LineSender) int {
9595
if ps, ok := s.(*pooledSender); ok {
96-
s = ps
96+
s = ps.wrapped
9797
}
9898
if hs, ok := s.(*httpLineSender); ok {
9999
return hs.BufLen()
@@ -112,7 +112,7 @@ func BufLen(s LineSender) int {
112112

113113
func ProtocolVersion(s LineSender) protocolVersion {
114114
if ps, ok := s.(*pooledSender); ok {
115-
s = ps
115+
s = ps.wrapped
116116
}
117117
if _, ok := s.(*httpLineSender); ok {
118118
return ProtocolVersion1

0 commit comments

Comments
 (0)