Skip to content

Commit

Permalink
Rename interface to avoid confusion with stdlib Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
metafeather committed May 4, 2024
1 parent beb34b7 commit 6696aa9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/l4postgres/matcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"go.uber.org/zap"
)

// Reader allows any Example to be used in tests as data
type Reader interface {
// MessageReader allows any Example to be used in tests as data
type MessageReader interface {
Read() ([]byte, error)
}

Expand Down Expand Up @@ -81,7 +81,7 @@ func TestPostgres(t *testing.T) {
tests := []struct {
name string
matcher layer4.ConnMatcher
data Reader
data MessageReader
expect bool
explain string
}{
Expand Down Expand Up @@ -153,7 +153,7 @@ func TestPostgresSSL(t *testing.T) {
tests := []struct {
name string
matcher layer4.ConnMatcher
data Reader
data MessageReader
expect bool
explain string
}{
Expand Down

0 comments on commit 6696aa9

Please sign in to comment.