Skip to content

Commit

Permalink
PostgreSQL embedded: tests use system temp dir for installation
Browse files Browse the repository at this point in the history
Signed-off-by: mrizzi <[email protected]>
  • Loading branch information
mrizzi authored and bobmcwhirter committed Mar 12, 2024
1 parent 9ddd72b commit 7569ef8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ jobs:
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::unwrap_used
- name: Test
run: cargo test -- --test-threads=1 --nocapture
run: cargo test -- --nocapture
env:
RUST_LOG: debug
1 change: 1 addition & 0 deletions graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ async-trait = "0.1.74"
lenient_semver = "0.4.2"
cpe = "0.1.3"
postgresql_embedded = { version = "0.6.2", features = ["blocking", "bundled", "tokio" ] }
tempfile = "3"


[dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions graph/src/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ impl Graph {
username: "postgres".to_string(),
password: "trustify".to_string(),
temporary: true,
installation_dir: tempfile::tempdir()?.into_path(),
..Default::default()
};

Expand Down

0 comments on commit 7569ef8

Please sign in to comment.