diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-12-09 11:29:15 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-12-10 18:04:03 +0300 |
commit | 647d47c0ab8733e3695862882af428944021da01 (patch) | |
tree | 1f9a5acc40c41edd33d54f9bc63051d522c01c32 /cmd | |
parent | 152eed395a273b99541257609664241296aef62e (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.go | 2 |
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) |