summaryrefslogtreecommitdiff
path: root/tag_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 /tag_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 'tag_test.go')
-rw-r--r--tag_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tag_test.go b/tag_test.go
index 2fdfe00..3404923 100644
--- a/tag_test.go
+++ b/tag_test.go
@@ -7,6 +7,7 @@ import (
)
func TestCreateTag(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -26,6 +27,7 @@ func TestCreateTag(t *testing.T) {
}
func TestCreateTagLightweight(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -50,6 +52,7 @@ func TestCreateTagLightweight(t *testing.T) {
}
func TestListTags(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -79,6 +82,7 @@ func TestListTags(t *testing.T) {
}
func TestListTagsWithMatch(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)
@@ -116,6 +120,7 @@ func TestListTagsWithMatch(t *testing.T) {
}
func TestTagForeach(t *testing.T) {
+ t.Parallel()
repo := createTestRepo(t)
defer cleanupTestRepo(t, repo)