fix broken tracer unit test (#847)

This commit is contained in:
yihuang
2021-12-16 01:21:06 +00:00
committed by GitHub
parent 09013d7ea0
commit 845bef6dab
+5 -3
View File
@@ -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)
})
}
}