Skip to content

Commit

Permalink
fix(stripe-mock): set STRIPE_HTTP_PORT and STRIPE_HTTPS_PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 15, 2024
1 parent 5378e27 commit 90ac262
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions stripe-mock/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ pub fn setup() -> Result<String, Error> {
format!("/home/linuxbrew/.linuxbrew/bin:{}", path),
)])?;

let stripe_http_port = dag().get_env("STRIPE_HTTP_PORT")?;
let stripe_https_port = dag().get_env("STRIPE_HTTPS_PORT")?;

if stripe_http_port.is_empty() {
dag().set_envs(vec![("STRIPE_HTTP_PORT".into(), "12111".into())])?;
}

if stripe_https_port.is_empty() {
dag().set_envs(vec![("STRIPE_HTTPS_PORT".into(), "12112".into())])?;
}

dag()
.pipeline("setup")?
.with_exec(vec!["mkdir", "-p", ".fluentci"])?
Expand Down

0 comments on commit 90ac262

Please sign in to comment.