This commit is contained in:
Jared Wasinger 2024-11-21 20:56:29 +07:00
parent 5ef597efc7
commit 0cf16d881b
2 changed files with 3 additions and 3 deletions

View File

@ -95,8 +95,8 @@ func timedExec(bench bool, execFunc func() ([]byte, uint64, error)) ([]byte, exe
if haveGasUsed != gasUsed {
panic(fmt.Sprintf("gas differs, have %v want%v", haveGasUsed, gasUsed))
}
if haveErr != execErr {
panic(fmt.Sprintf("err differs, have %v want %v", haveErr, execErr))
if haveErr != err {
panic(fmt.Sprintf("err differs, have %v want %v", haveErr, err))
}
}
})

View File

@ -179,7 +179,7 @@ func runStateTest(ctx *cli.Context, fname string, cfg vm.Config, dump bool, benc
if bench {
// TODO: verify that each bench exec didn't produce a different result than the first run
// ..
_, stats, _, _ := timedExec(true, func() ([]byte, uint64, error) {
_, stats, _ := timedExec(true, func() ([]byte, uint64, error) {
_, _, gasUsed, _ := test.test.RunNoVerify(test.st, cfg, false, rawdb.HashScheme)
return nil, gasUsed, nil
})