fix
This commit is contained in:
parent
5ef597efc7
commit
0cf16d881b
|
@ -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))
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue