Skip to content

Commit

Permalink
fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
3vilhamster committed Nov 7, 2024
1 parent 3acf602 commit 5501cc5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/common/thrift_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ func TestIsUseThriftEncoding(t *testing.T) {

func TestIsUseThriftDecoding(t *testing.T) {
t.Run("success", func(t *testing.T) {
str1 := &mockThriftStruct{}
str2 := &mockThriftStruct{}
ts := []interface{}{
&mockThriftStruct{},
&mockThriftStruct{},
&str1,
&str2,
}

assert.True(t, IsUseThriftDecoding(ts))
Expand Down

0 comments on commit 5501cc5

Please sign in to comment.