From f243546c3360a174bec10f73f160419b5b90349d Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 20 Jul 2018 11:13:27 +0200 Subject: [PATCH] waddrmgr test: move t.Parallel to actual test --- waddrmgr/common_test.go | 2 -- waddrmgr/manager_test.go | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) 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()