diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-14 00:53:53 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-14 00:53:53 +0800 |
commit | fee9aecfb292389c1e3c2c682be0cca56dc205d0 (patch) | |
tree | 3cdccf54df8d264baee1f48bfd40911e15f525eb | |
parent | ccda1aacb4da43c133758823741624e83eb382b1 (diff) | |
download | go-tangerine-fee9aecfb292389c1e3c2c682be0cca56dc205d0.tar.gz go-tangerine-fee9aecfb292389c1e3c2c682be0cca56dc205d0.tar.zst go-tangerine-fee9aecfb292389c1e3c2c682be0cca56dc205d0.zip |
more tests for remote update
-rw-r--r-- | state/managed_state_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/state/managed_state_test.go b/state/managed_state_test.go index da52ab270..f819d8ad3 100644 --- a/state/managed_state_test.go +++ b/state/managed_state_test.go @@ -78,4 +78,12 @@ func TestRemoteNonceChange(t *testing.T) { if nonce != 200 { t.Error("expected nonce after remote update to be", 201, "got", nonce) } + ms.NewNonce(addr) + ms.NewNonce(addr) + ms.NewNonce(addr) + ms.StateDB.stateObjects[string(addr)].nonce = 200 + nonce = ms.NewNonce(addr) + if nonce != 204 { + t.Error("expected nonce after remote update to be", 201, "got", nonce) + } } |