diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index d7b3af32e8..91b1b379ed 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -197,23 +197,19 @@ func TestCopy(t *testing.T) { } // Finalise the changes on all concurrently - finalise := func(db *StateDB) { - db.Finalise(true) - } - var wg sync.WaitGroup wg.Add(3) go func() { defer wg.Done() - finalise(orig) + orig.Finalise(true) }() go func() { defer wg.Done() - finalise(copy) + copy.Finalise(true) }() go func() { defer wg.Done() - finalise(ccopy) + ccopy.Finalise(true) }() wg.Wait()