fix broken tracer unit test (#847)

This commit is contained in:
yihuang 2021-12-16 09:21:06 +08:00 committed by GitHub
parent 09013d7ea0
commit 845bef6dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ func TestFormatLogs(t *testing.T) {
{ {
Pc: uint64(0), Pc: uint64(0),
Op: "STOP", Op: "STOP",
Memory: &[]string{}, Memory: &[]string{"05"},
}, },
}, },
}, },
@ -72,9 +72,11 @@ func TestFormatLogs(t *testing.T) {
}, },
} }
for _, tc := range testCases { 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)
})
} }
} }