summaryrefslogtreecommitdiff
path: root/reference_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 /reference_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 'reference_test.go')
-rw-r--r--reference_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/reference_test.go b/reference_test.go
index 761daf8..b6721e1 100644
--- a/reference_test.go
+++ b/reference_test.go
@@ -8,6 +8,7 @@ import (
)
func TestRefModification(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -53,6 +54,7 @@ func TestRefModification(t *testing.T) {
}
func TestReferenceIterator(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -131,6 +133,7 @@ func TestReferenceIterator(t *testing.T) {
}
func TestReferenceOwner(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -150,6 +153,7 @@ func TestReferenceOwner(t *testing.T) {
}
func TestUtil(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -177,6 +181,7 @@ func TestUtil(t *testing.T) {
}
func TestIsNote(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -210,6 +215,7 @@ func TestIsNote(t *testing.T) {
}
func TestReferenceIsValidName(t *testing.T) {
+ t.Parallel()
if !ReferenceIsValidName("HEAD") {
t.Errorf("HEAD should be a valid reference name")
}