Skip to content

Commit

Permalink
Merge pull request #123 from blocknative/TS_test
Browse files Browse the repository at this point in the history
tests,fix: Fix tracer test output and file handling.
  • Loading branch information
tyler-smith authored Sep 23, 2023
2 parents 71d6e21 + e59f4f8 commit 706ddd5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions eth/tracers/internal/tracetest/blocknative_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func benchmarkBlocknativeTracer(b *testing.B, decode bool, dirPaths ...string) {
}

for _, file := range files {
if file.IsDir() {
continue
}
var (
test = new(blocknativeTracerTest)
tx = new(types.Transaction)
Expand Down Expand Up @@ -241,10 +244,10 @@ func executeTestCase(test *blocknativeTracerTest, t testing.TB, checkResult bool
fmt.Println("Trace return: ")
x, _ := json.Marshal(ret)
// //x, _ := json.MarshalIndent(ret, "", " ")
y, _ := json.Marshal(test.Result)
// y, _ := json.Marshal(test.Result)
fmt.Println(string(x))
fmt.Println("test.Result")
fmt.Println(string(y))
// fmt.Println(string(y))
t.Fatal("traces mismatch")
// t.Fatalf("trace mismatch: \nhave %+v\nwant %+v", ret, test.Result)
}
Expand Down

0 comments on commit 706ddd5

Please sign in to comment.