waddrmgr test: move t.Parallel to actual test

This commit is contained in:
Johan T. Halseth 2018-07-20 11:13:27 +02:00
parent 5b3d124de2
commit f243546c33
No known key found for this signature in database
GPG key ID: 15BAADA29DA20D26
2 changed files with 4 additions and 2 deletions

View file

@ -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 {

View file

@ -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()