summaryrefslogtreecommitdiff
path: root/remote_test.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2016-08-27 19:21:05 +0200
committerCarlos Martín Nieto <[email protected]>2016-08-27 19:21:05 +0200
commite55c00eca7e70e2d02860cda3cdc9169a88ece36 (patch)
tree8771d83cc80bb0b48c3e2d87d76156858b3371b4 /remote_test.go
parent1670c49c7e02ba38aa10072a102a33c3e6d5e1c3 (diff)
Run the tests in parallel
This saves about 1s, or 1/3 of the test runtime. The linking is still much slower, but this we can control.
Diffstat (limited to 'remote_test.go')
-rw-r--r--remote_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/remote_test.go b/remote_test.go
index 978b803..3d00640 100644
--- a/remote_test.go
+++ b/remote_test.go
@@ -6,6 +6,7 @@ import (
)
func TestListRemotes(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -33,6 +34,7 @@ func assertHostname(cert *Certificate, valid bool, hostname string, t *testing.T
}
func TestCertificateCheck(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -52,6 +54,7 @@ func TestCertificateCheck(t *testing.T) {
}
func TestRemoteConnect(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -63,6 +66,7 @@ func TestRemoteConnect(t *testing.T) {
}
func TestRemoteLs(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -81,6 +85,7 @@ func TestRemoteLs(t *testing.T) {
}
func TestRemoteLsFiltering(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -107,6 +112,7 @@ func TestRemoteLsFiltering(t *testing.T) {
}
func TestRemotePruneRefs(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -129,6 +135,7 @@ func TestRemotePruneRefs(t *testing.T) {
}
func TestRemotePrune(t *testing.T) {
+ t.Parallel()
remoteRepo := createTestRepo(t)
defer cleanupTestRepo(t, remoteRepo)