diff --git a/waddrmgr/common_test.go b/waddrmgr/common_test.go index 14bad47..0a47970 100644 --- a/waddrmgr/common_test.go +++ b/waddrmgr/common_test.go @@ -206,8 +206,6 @@ func emptyDB(t *testing.T) (tearDownFunc func(), db walletdb.DB) { // setupManager creates a new address manager and returns a teardown function // that should be invoked to ensure it is closed and removed upon completion. func setupManager(t *testing.T) (tearDownFunc func(), db walletdb.DB, mgr *waddrmgr.Manager) { - t.Parallel() - // Create a new manager in a temp directory. dirName, err := ioutil.TempDir("", "mgrtest") if err != nil { diff --git a/waddrmgr/manager_test.go b/waddrmgr/manager_test.go index 932f50a..32d71bf 100644 --- a/waddrmgr/manager_test.go +++ b/waddrmgr/manager_test.go @@ -1859,6 +1859,8 @@ func TestManager(t *testing.T) { // TestEncryptDecryptErrors ensures that errors which occur while encrypting and // decrypting data return the expected errors. func TestEncryptDecryptErrors(t *testing.T) { + t.Parallel() + teardown, db, mgr := setupManager(t) defer teardown() @@ -1911,6 +1913,8 @@ func TestEncryptDecryptErrors(t *testing.T) { // TestEncryptDecrypt ensures that encrypting and decrypting data with the // the various crypto key types works as expected. func TestEncryptDecrypt(t *testing.T) { + t.Parallel() + teardown, db, mgr := setupManager(t) defer teardown()