Skip to content

Commit

Permalink
- fixes after self review
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianpascalau committed Apr 14, 2022
1 parent a652343 commit 99cd142
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
10 changes: 0 additions & 10 deletions state/accountsDB_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,6 @@ func TestNewAccountsDB(t *testing.T) {
assert.True(t, check.IfNil(adb))
assert.Equal(t, state.ErrNilHasher, err)
})
t.Run("nil hasher should error", func(t *testing.T) {
t.Parallel()

args := createMockAccountsDBArgs()
args.Hasher = nil

adb, err := state.NewAccountsDB(args)
assert.True(t, check.IfNil(adb))
assert.Equal(t, state.ErrNilHasher, err)
})
t.Run("nil marshaller should error", func(t *testing.T) {
t.Parallel()

Expand Down
2 changes: 1 addition & 1 deletion state/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (adb *AccountsDB) GetObsoleteHashes() map[string][][]byte {
return adb.obsoleteDataTrieHashes
}

// GetObsoleteHashes -
// WaitForCompletionIfRunningInImportDB -
func (adb *AccountsDB) WaitForCompletionIfRunningInImportDB(stats common.SnapshotStatisticsHandler) {
adb.waitForCompletionIfRunningInImportDB(stats)
}
Expand Down
10 changes: 0 additions & 10 deletions state/peerAccountsDB_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ func TestNewPeerAccountsDB(t *testing.T) {
assert.True(t, check.IfNil(adb))
assert.Equal(t, state.ErrNilHasher, err)
})
t.Run("nil hasher should error", func(t *testing.T) {
t.Parallel()

args := createMockAccountsDBArgs()
args.Hasher = nil

adb, err := state.NewPeerAccountsDB(args)
assert.True(t, check.IfNil(adb))
assert.Equal(t, state.ErrNilHasher, err)
})
t.Run("nil marshaller should error", func(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit 99cd142

Please sign in to comment.