Browse Source

Last fixes

pull/638/head
Adrian Brink 7 years ago
parent
commit
870a98ccc3
No known key found for this signature in database GPG Key ID: 5F00B6750045E653
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      state/state_test.go

+ 2
- 1
state/state_test.go View File

@ -39,7 +39,7 @@ func TestStateCopy(t *testing.T) {
stateCopy := state.Copy() stateCopy := state.Copy()
assert.True(state.Equals(stateCopy), assert.True(state.Equals(stateCopy),
cmn.Fmt("exppppppected state and its copy to be identical. got %v\n expected %v\n", stateCopy, state))
cmn.Fmt("expected state and its copy to be identical. got %v\n expected %v\n", stateCopy, state))
stateCopy.LastBlockHeight++ stateCopy.LastBlockHeight++
assert.False(state.Equals(stateCopy), cmn.Fmt("expected states to be different. got same %v", state)) assert.False(state.Equals(stateCopy), cmn.Fmt("expected states to be different. got same %v", state))
} }
@ -47,6 +47,7 @@ func TestStateCopy(t *testing.T) {
func TestStateSaveLoad(t *testing.T) { func TestStateSaveLoad(t *testing.T) {
tearDown, stateDB, state := setupTestCase(t) tearDown, stateDB, state := setupTestCase(t)
defer tearDown(t) defer tearDown(t)
assert := assert.New(t)
state.LastBlockHeight++ state.LastBlockHeight++
state.Save() state.Save()


Loading…
Cancel
Save