Skip to content

Commit

Permalink
reviewed
Browse files Browse the repository at this point in the history
  • Loading branch information
beltram.maldant committed Mar 22, 2021
1 parent aa4554e commit 30dd762
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Expand Up @@ -11,4 +11,4 @@ jobs:
- uses: actions/checkout@v2.3.4
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Expand Up @@ -112,8 +112,9 @@ jobs:
runs-on: ubuntu-latest
needs: [release]
steps:
- uses: actions/checkout@v2
- name: Build-musl
- uses: actions/checkout@v2.3.4
- uses: Swatinem/rust-cache@v1
- name: build-musl
uses: gmiam/rust-musl-action@master
with:
args: cargo build --target ${STATIC_BUILD_TARGET} --release
Expand Down
3 changes: 2 additions & 1 deletion lib/Cargo.toml
Expand Up @@ -64,4 +64,5 @@ path = "benches/templating.rs"
harness = false

[features]
iso = []
iso = []
cloud = []
7 changes: 6 additions & 1 deletion lib/src/server/mod.rs
Expand Up @@ -20,8 +20,13 @@ pub struct Stubr {
}

impl Stubr {

#[cfg(feature = "cloud")]
const HOST: &'static str = "0.0.0.0";

#[cfg(not(feature = "cloud"))]
const HOST: &'static str = "127.0.0.1";

/// Runs a mock server.
/// The server is unbinded when the instance is dropped.
/// Use this in a test context.
Expand Down Expand Up @@ -137,4 +142,4 @@ mod server_test {
let mocks = Stubr::start_on_random_port().await.find_all_mocks(&from, &config).await;
assert_eq!(mocks.count(), 0);
}
}
}

0 comments on commit 30dd762

Please sign in to comment.