Skip to content

Commit

Permalink
tests/stream_test.go: Remove duplicate import
Browse files Browse the repository at this point in the history
The protobuf package ./src/proto was being imported twice with names
simple and testproto. Use the name simple consistently since that is
used more often, and is the same name used in the other test files.
  • Loading branch information
evanj committed Jun 7, 2024
1 parent c87374b commit c1a75a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
fuzz "github.com/google/gofuzz"
"github.com/richardartoul/molecule"
simple "github.com/richardartoul/molecule/src/proto"
testproto "github.com/richardartoul/molecule/src/proto"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
"gotest.tools/assert"
Expand Down Expand Up @@ -57,7 +56,7 @@ func TestSimpleEncoding(t *testing.T) {
require.NoError(t, ps.Int64Packed(fieldRepeatedInt64Packed, []int64{-1, 2, 3}))

buf := output.Bytes()
var res testproto.Simple
var res simple.Simple

require.NoError(t, proto.Unmarshal(buf, &res))

Expand Down Expand Up @@ -395,7 +394,7 @@ func TestEmbedding(t *testing.T) {
require.NoError(t, ps.Embedded(fieldNestedMessage, makeMsg("hello")))

buf := output.Bytes()
var res testproto.Nested
var res simple.Nested

require.NoError(t, proto.Unmarshal(buf, &res))

Expand Down

0 comments on commit c1a75a0

Please sign in to comment.