Skip to content

Commit

Permalink
more tests for remote update
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Mar 13, 2015
1 parent ccda1aa commit fee9aec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions state/managed_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit fee9aec

Please sign in to comment.