Skip to content

Commit 5501cc5

Browse files
committed
fix the test
1 parent 3acf602 commit 5501cc5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/common/thrift_util_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ func TestIsUseThriftEncoding(t *testing.T) {
7878

7979
func TestIsUseThriftDecoding(t *testing.T) {
8080
t.Run("success", func(t *testing.T) {
81+
str1 := &mockThriftStruct{}
82+
str2 := &mockThriftStruct{}
8183
ts := []interface{}{
82-
&mockThriftStruct{},
83-
&mockThriftStruct{},
84+
&str1,
85+
&str2,
8486
}
8587

8688
assert.True(t, IsUseThriftDecoding(ts))

0 commit comments

Comments
 (0)