diff options
| author | Carlos Martín Nieto <[email protected]> | 2016-08-27 19:21:05 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2016-08-27 19:21:05 +0200 |
| commit | e55c00eca7e70e2d02860cda3cdc9169a88ece36 (patch) | |
| tree | 8771d83cc80bb0b48c3e2d87d76156858b3371b4 /git_test.go | |
| parent | 1670c49c7e02ba38aa10072a102a33c3e6d5e1c3 (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 'git_test.go')
| -rw-r--r-- | git_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git_test.go b/git_test.go index 58caf71..bdb6837 100644 --- a/git_test.go +++ b/git_test.go @@ -109,6 +109,7 @@ func updateReadme(t *testing.T, repo *Repository, content string) (*Oid, *Oid) { } func TestOidZero(t *testing.T) { + t.Parallel() var zeroId Oid if !zeroId.IsZero() { @@ -117,6 +118,7 @@ func TestOidZero(t *testing.T) { } func TestEmptyOid(t *testing.T) { + t.Parallel() _, err := NewOid("") if err == nil || !IsErrorCode(err, ErrGeneric) { t.Fatal("Should have returned invalid error") |
