Skip to content

Commit

Permalink
chore: get rid of itest-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Jan 7, 2024
1 parent a31d6d5 commit 20d34c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions integrationtests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ path = "tests/tests.rs"
name = "lnbitsmock"
path = "src/lnbitsmock.rs"

[features]
integration-tests = []

[dependencies]
rand = "0.8.5"
axum = "0.7.3"
Expand Down
3 changes: 1 addition & 2 deletions integrationtests/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use tokio::runtime::Runtime;
use tokio::time::{sleep_until, Instant};

#[test]
#[cfg(feature = "integration-tests")]
#[ignore]
pub fn test_integration() -> anyhow::Result<()> {
use mokshamint::config::{DatabaseConfig, LightningFeeConfig, ServerConfig};

Expand Down Expand Up @@ -139,7 +139,6 @@ pub fn test_integration() -> anyhow::Result<()> {
Ok(())
}

#[cfg(feature = "integration-tests")]
fn read_fixture(name: &str) -> anyhow::Result<String> {
let base_dir = std::env::var("CARGO_MANIFEST_DIR")?;
let raw_token = std::fs::read_to_string(format!("{base_dir}/tests/fixtures/{name}"))?;
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ run-web:
# run integrationtests
run-itests:
cd integrationtests && \
cargo test --features integration-tests
cargo test -- --ignored


# build flutter desktop-app
Expand Down

0 comments on commit 20d34c8

Please sign in to comment.