From 1ee125c399340956b813aefb1b2459db53778a85 Mon Sep 17 00:00:00 2001 From: "duanyi.aster" Date: Mon, 10 Jul 2023 11:38:45 +0800 Subject: [PATCH] adjust test case --- testdata/h2t_conv_test.go | 5 +---- thrift/annotation/anno_mapping_test.go | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/testdata/h2t_conv_test.go b/testdata/h2t_conv_test.go index c03fafb8..ec6d9ab1 100644 --- a/testdata/h2t_conv_test.go +++ b/testdata/h2t_conv_test.go @@ -97,10 +97,7 @@ func TestHTTP2ThriftConv_Do(t *testing.T) { Arguments: general.Struct{ 1: general.Struct{ 1: int32(7749), - 255: general.Struct{ - 1: int32(0), - 2: general.List(nil), - }, + 255: general.Struct{}, }, }, }, diff --git a/thrift/annotation/anno_mapping_test.go b/thrift/annotation/anno_mapping_test.go index 35a01ab3..09e6b252 100644 --- a/thrift/annotation/anno_mapping_test.go +++ b/thrift/annotation/anno_mapping_test.go @@ -72,8 +72,7 @@ func TestGoTagJSON(t *testing.T) { string ExampleMethod(1: Base req) } `, "ExampleMethod") - require.Error(t, err) - println(err.Error()) + require.NoError(t, err) } func TestApiKey(t *testing.T) {