diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-08-20 20:58:49 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-08-20 20:58:49 +0100 |
commit | 7e29b8a770a45b68638f5dba9ad58b755ccb4749 (patch) | |
tree | 8e1a36d970191dfb8d95c86db3f87163f6d15047 /server/store | |
parent | 70b5eb8e1f220a2849a6759eda321205fcb79111 (diff) |
Run some tests in parallel
Diffstat (limited to 'server/store')
-rw-r--r-- | server/store/config_test.go | 2 | ||||
-rw-r--r-- | server/store/store_test.go | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/server/store/config_test.go b/server/store/config_test.go index f262b57..9a77027 100644 --- a/server/store/config_test.go +++ b/server/store/config_test.go @@ -9,6 +9,7 @@ import ( ) func TestMySQLConfig(t *testing.T) { + t.Parallel() var tests = []struct { in string out []string @@ -26,6 +27,7 @@ func TestMySQLConfig(t *testing.T) { } func TestMongoConfig(t *testing.T) { + t.Parallel() var tests = []struct { in string out *mgo.DialInfo diff --git a/server/store/store_test.go b/server/store/store_test.go index 629230b..18fa0d1 100644 --- a/server/store/store_test.go +++ b/server/store/store_test.go @@ -17,6 +17,7 @@ import ( ) func TestParseCertificate(t *testing.T) { + t.Parallel() a := assert.New(t) now := uint64(time.Now().Unix()) r, _ := rsa.GenerateKey(rand.Reader, 1024) @@ -88,11 +89,13 @@ func testStore(t *testing.T, db CertStorer) { } func TestMemoryStore(t *testing.T) { + t.Parallel() db := NewMemoryStore() testStore(t, db) } func TestMySQLStore(t *testing.T) { + t.Parallel() config := os.Getenv("MYSQL_TEST_CONFIG") if config == "" { t.Skip("No MYSQL_TEST_CONFIG environment variable") @@ -105,6 +108,7 @@ func TestMySQLStore(t *testing.T) { } func TestMongoStore(t *testing.T) { + t.Parallel() config := os.Getenv("MONGO_TEST_CONFIG") if config == "" { t.Skip("No MONGO_TEST_CONFIG environment variable") @@ -117,6 +121,7 @@ func TestMongoStore(t *testing.T) { } func TestSQLiteStore(t *testing.T) { + t.Parallel() f, err := ioutil.TempFile("", "sqlite_test_db") if err != nil { t.Error(err) |