diff --git a/.gitignore b/.gitignore index 42c24959..1167e381 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ cmd/gemini/dist/ /gemini +.idea \ No newline at end of file diff --git a/cmd/gemini/root.go b/cmd/gemini/root.go index 3b21d551..91a83bec 100644 --- a/cmd/gemini/root.go +++ b/cmd/gemini/root.go @@ -301,9 +301,10 @@ func run(cmd *cobra.Command, args []string) error { case <-gCtx.Done(): default: testJobs := jobsFromMode(mode) - for _, testJob := range testJobs { + for id := range testJobs { + tJob := testJobs[id] g.Go(func() error { - return job(gCtx, testJob, concurrency, schema, schemaConfig, store, pump, generators, result, logger) + return job(gCtx, tJob, concurrency, schema, schemaConfig, store, pump, generators, result, logger) }) } if err := g.Wait(); err != nil {