mirror of
https://github.com/grdl/git-get.git
synced 2026-02-07 02:05:37 +00:00
Add test parallelization and re-enable paralleltest linter
This commit is contained in:
@@ -21,6 +21,7 @@ func (c *cfgStub) Get(key string) string {
|
||||
}
|
||||
|
||||
func TestGitConfig(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := []struct {
|
||||
name string
|
||||
configMaker func(t *testing.T) *cfgStub
|
||||
@@ -53,6 +54,7 @@ func TestGitConfig(t *testing.T) {
|
||||
|
||||
for _, test := range tests {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
cfg := test.configMaker(t)
|
||||
|
||||
got := cfg.Get(test.key)
|
||||
|
||||
Reference in New Issue
Block a user