Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-12-09 11:29:15 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-12-10 18:04:03 +0300
commit647d47c0ab8733e3695862882af428944021da01 (patch)
tree1f9a5acc40c41edd33d54f9bc63051d522c01c32 /cmd
parent152eed395a273b99541257609664241296aef62e (diff)
backup: Parallelize tests
Use better parallelization for tests by adding `t.Parallel()` calls as required. Like this, tests drop from 28 seconds of execution time to only 8 seconds.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gitaly-backup/restore_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/gitaly-backup/restore_test.go b/cmd/gitaly-backup/restore_test.go
index 0b309db30..a207651ad 100644
--- a/cmd/gitaly-backup/restore_test.go
+++ b/cmd/gitaly-backup/restore_test.go
@@ -20,6 +20,8 @@ import (
)
func TestRestoreSubcommand(t *testing.T) {
+ t.Parallel()
+
cfg := testcfg.Build(t)
testcfg.BuildGitalyHooks(t, cfg)