diff options
Diffstat (limited to 'tests/vm')
-rw-r--r-- | tests/vm/gh_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index 959f20463..1e8cd5b51 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -116,7 +116,6 @@ func RunVmTest(p string, t *testing.T) { } else { ret, logs, gas, err = helper.RunState(statedb, env, test.Transaction) } - statedb.Sync() rexp := helper.FromHex(test.Out) if bytes.Compare(rexp, ret) != 0 { @@ -157,6 +156,7 @@ func RunVmTest(p string, t *testing.T) { } if !isVmTest { + statedb.Sync() if !bytes.Equal(ethutil.Hex2Bytes(test.PostStateRoot), statedb.Root()) { t.Errorf("%s's : Post state root error. Expected %s, got %x", name, test.PostStateRoot, statedb.Root()) } |