Skip to content

Commit 7de6133

Browse files
Giorgi LeladzeGiorgi Leladze
authored andcommitted
setup test token before execution
1 parent 80037f8 commit 7de6133

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/execution/runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func (r *Runner) run(testPath string, filter string, workerID int) domain.TestRe
4343

4444
cmd.Env = os.Environ()
4545
cmd.Env = append(cmd.Env, fmt.Sprintf("DB_DATABASE=%s", r.config.GetDatabaseName(workerID)))
46+
cmd.Env = append(cmd.Env, fmt.Sprintf("TEST_TOKEN=%s", workerID))
4647
cmd.Dir = r.config.ProjectPath
4748

4849
debug.Logf("runner[w%d]: exec %s %v (dir=%s, db=%s)", workerID, phpunitPath, args, r.config.ProjectPath, r.config.GetDatabaseName(workerID))

0 commit comments

Comments
 (0)