From 845bef6dab1e7f5ac129a10f9d99bb1244394cc6 Mon Sep 17 00:00:00 2001 From: yihuang Date: Thu, 16 Dec 2021 09:21:06 +0800 Subject: [PATCH] fix broken tracer unit test (#847) --- x/evm/types/tracer_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/x/evm/types/tracer_test.go b/x/evm/types/tracer_test.go index ad772384..92b7ba20 100644 --- a/x/evm/types/tracer_test.go +++ b/x/evm/types/tracer_test.go @@ -51,7 +51,7 @@ func TestFormatLogs(t *testing.T) { { Pc: uint64(0), Op: "STOP", - Memory: &[]string{}, + Memory: &[]string{"05"}, }, }, }, @@ -72,9 +72,11 @@ func TestFormatLogs(t *testing.T) { }, } for _, tc := range testCases { - actual := FormatLogs(tc.logs) + t.Run(tc.name, func(t *testing.T) { + actual := FormatLogs(tc.logs) - require.Equal(t, tc.exp, actual) + require.Equal(t, tc.exp, actual) + }) } }