aboutsummaryrefslogtreecommitdiffstats
path: root/state/managed_state_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-14 00:53:53 +0800
committerobscuren <geffobscura@gmail.com>2015-03-14 00:53:53 +0800
commitfee9aecfb292389c1e3c2c682be0cca56dc205d0 (patch)
tree3cdccf54df8d264baee1f48bfd40911e15f525eb /state/managed_state_test.go
parentccda1aacb4da43c133758823741624e83eb382b1 (diff)
downloaddexon-fee9aecfb292389c1e3c2c682be0cca56dc205d0.tar
dexon-fee9aecfb292389c1e3c2c682be0cca56dc205d0.tar.gz
dexon-fee9aecfb292389c1e3c2c682be0cca56dc205d0.tar.bz2
dexon-fee9aecfb292389c1e3c2c682be0cca56dc205d0.tar.lz
dexon-fee9aecfb292389c1e3c2c682be0cca56dc205d0.tar.xz
dexon-fee9aecfb292389c1e3c2c682be0cca56dc205d0.tar.zst
dexon-fee9aecfb292389c1e3c2c682be0cca56dc205d0.zip
more tests for remote update
Diffstat (limited to 'state/managed_state_test.go')
-rw-r--r--state/managed_state_test.go8
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)
+ }
}