diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2021-06-18 09:52:04 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2021-06-29 13:28:47 +0300 |
commit | dd032a8b44ec9e5547b5dfa1b5f429c1ad5d8e78 (patch) | |
tree | 0a2a7fa09e88b20501002e06b2997d0f00f46f79 /internal/gitaly/service/repository/fetch_test.go | |
parent | c7e216b2e6c0eadcee148718a5256b129b4c73b4 (diff) |
Parallel execution of the tests in the repository package
To speed up execution of the tests we mark them allowed to
run in parallel by calling t.Parallel(). As a first step we
mark for parallel execution only upper-level test and no sub-tests.
Diffstat (limited to 'internal/gitaly/service/repository/fetch_test.go')
-rw-r--r-- | internal/gitaly/service/repository/fetch_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/gitaly/service/repository/fetch_test.go b/internal/gitaly/service/repository/fetch_test.go index 0ba519854..c14bbbdb1 100644 --- a/internal/gitaly/service/repository/fetch_test.go +++ b/internal/gitaly/service/repository/fetch_test.go @@ -13,6 +13,7 @@ import ( ) func TestFetchSourceBranchSourceRepositorySuccess(t *testing.T) { + t.Parallel() cfg, sourceRepo, sourcePath, client := setupRepositoryService(t) ctx, cancel := testhelper.Context() @@ -46,6 +47,7 @@ func TestFetchSourceBranchSourceRepositorySuccess(t *testing.T) { } func TestFetchSourceBranchSameRepositorySuccess(t *testing.T) { + t.Parallel() cfg, repoProto, repoPath, client := setupRepositoryService(t) ctx, cancel := testhelper.Context() @@ -77,6 +79,7 @@ func TestFetchSourceBranchSameRepositorySuccess(t *testing.T) { } func TestFetchSourceBranchBranchNotFound(t *testing.T) { + t.Parallel() cfg, targetRepo, _, client := setupRepositoryService(t) ctx, cancel := testhelper.Context() @@ -125,6 +128,7 @@ func TestFetchSourceBranchBranchNotFound(t *testing.T) { } func TestFetchSourceBranchWrongRef(t *testing.T) { + t.Parallel() cfg, targetRepo, _, client := setupRepositoryService(t) ctx, cancel := testhelper.Context() |