Skip to content

Commit

Permalink
set wait duration after scenario to 1 (#18)
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani authored Dec 9, 2024
1 parent 64c689b commit aa0de25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/scenario_orchestrator/docker/scenario_orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func (c *ScenarioOrchestrator) Run(image string, containerName string, env map[s
envVars = append(envVars, fmt.Sprintf("%s='True'", c.GetConfig().DebugEnvironmentVariable))
}

// THIS WILL BE REMOVED WHEN GLOBAL ENV WILL BE INTRODUCED
envVars = append(envVars, "WAIT_DURATION=1")

for k, v := range env {
envVars = append(envVars, fmt.Sprintf("%s=%s", k, v))
}
Expand Down
4 changes: 4 additions & 0 deletions pkg/scenario_orchestrator/podman/scenario_orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ func (c *ScenarioOrchestrator) Run(image string, containerName string, env map[s
if debug == true {
s.Env[c.GetConfig().DebugEnvironmentVariable] = "True"
}

// THIS WILL BE REMOVED WHEN GLOBAL ENV WILL BE INTRODUCED
s.Env["WAIT_DURATION"] = "1"

for k, v := range volumeMounts {
containerMount := specs.Mount{
Destination: v,
Expand Down

0 comments on commit aa0de25

Please sign in to comment.