From 1da9b719330c93f76d7e8a99e2cf2d69976a4e4d Mon Sep 17 00:00:00 2001 From: mrz1836 Date: Fri, 30 Oct 2020 00:57:06 -0400 Subject: [PATCH] Added parallel() testing --- encryption_test.go | 2 ++ private_key_test.go | 1 + 2 files changed, 3 insertions(+) diff --git a/encryption_test.go b/encryption_test.go index f3fbf53..4b4b5ae 100644 --- a/encryption_test.go +++ b/encryption_test.go @@ -416,6 +416,7 @@ func BenchmarkDecryptWithPrivateKeyString(b *testing.B) { // TestEncryptShared will test the method EncryptShared() func TestEncryptShared(t *testing.T) { + t.Parallel() // User 1's private key privKey1, _ := CreatePrivateKey() @@ -469,6 +470,7 @@ func TestEncryptSharedPanic(t *testing.T) { // TestEncryptSharedString will test the method EncryptSharedString() func TestEncryptSharedString(t *testing.T) { + t.Parallel() // User 1's private key privKey1, _ := CreatePrivateKey() diff --git a/private_key_test.go b/private_key_test.go index 9c9787c..9fe4c18 100644 --- a/private_key_test.go +++ b/private_key_test.go @@ -12,6 +12,7 @@ import ( // encrypt data that can be decrypted by yourself (privkey) and also the owner // of the given public key func TestGenerateSharedKeyPair(t *testing.T) { + t.Parallel() // User 1 privKey1, _ := CreatePrivateKey()