mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
fix
This commit is contained in:
parent
5ef597efc7
commit
0cf16d881b
2 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue