Skip to content

Commit

Permalink
remove into_persistent calls
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron1024 committed Jun 24, 2022
1 parent 119c66a commit 2e93c26
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Expand Up @@ -48,7 +48,7 @@ pub fn out_settings_file_override() {
#[test]
#[ignore = "issue in comment for https://github.com/input-output-hk/vit-servicing-station/pull/75"]
pub fn out_settings_file_from_cmdline() {
let temp_dir = TempDir::new().unwrap().into_persistent();
let temp_dir = TempDir::new().unwrap();
let (_, settings) = example_settings_file(&temp_dir);
let out_settings_file = temp_dir.child("settings.json");

Expand Down
2 changes: 1 addition & 1 deletion vit-servicing-station-tests/src/tests/bootstrap/mod.rs
Expand Up @@ -8,7 +8,7 @@ pub mod arguments;

#[test]
pub fn bootstrap_with_random_data() -> Result<(), Box<dyn std::error::Error>> {
let temp_dir = TempDir::new().unwrap().into_persistent();
let temp_dir = TempDir::new().unwrap();
let snapshot = data::ArbitrarySnapshotGenerator::default().snapshot();
let db_path = DbBuilder::new().with_snapshot(&snapshot).build(&temp_dir)?;

Expand Down
2 changes: 1 addition & 1 deletion vit-servicing-station-tests/src/tests/cli/load.rs
Expand Up @@ -105,7 +105,7 @@ pub fn load_data_test() {

#[test]
pub fn voting_snapshot_build() {
let temp_dir = TempDir::new().unwrap().into_persistent();
let temp_dir = TempDir::new().unwrap();
let mut db_builder = DbBuilder::new();
db_builder.with_snapshot(&multivoteplan_snapshot());
db_builder.build(&temp_dir).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion vit-servicing-station-tests/src/tests/cli/token.rs
Expand Up @@ -77,7 +77,7 @@ pub fn add_generated_token_to_db() -> Result<(), Box<dyn Error>> {

#[test]
pub fn add_generated_token_to_db_negative() -> Result<(), Box<dyn Error>> {
let temp_dir = TempDir::new().unwrap().into_persistent();
let temp_dir = TempDir::new().unwrap();
let (server, _snapshot) = quick_start(&temp_dir).unwrap();

let vit_cli: VitCli = Default::default();
Expand Down
Expand Up @@ -12,7 +12,7 @@ use vit_servicing_station_lib::db::models::community_advisors_reviews::{
#[test]
pub fn get_advisor_reviews() -> Result<(), Box<dyn std::error::Error>> {
use pretty_assertions::assert_eq;
let temp_dir = TempDir::new().unwrap().into_persistent();
let temp_dir = TempDir::new().unwrap();
let proposal_id = 1234;
let expected_review = AdvisorReview {
id: 1,
Expand Down
2 changes: 1 addition & 1 deletion vit-servicing-station-tests/src/tests/rest/cors.rs
Expand Up @@ -130,7 +130,7 @@ pub fn cors_https() -> Result<(), Box<dyn std::error::Error>> {

#[test]
pub fn cors_multi_domain() -> Result<(), Box<dyn std::error::Error>> {
let temp_dir = TempDir::new().unwrap().into_persistent();
let temp_dir = TempDir::new().unwrap();
let snapshot = ArbitrarySnapshotGenerator::default().snapshot();
let db_path = DbBuilder::new().with_snapshot(&snapshot).build(&temp_dir)?;

Expand Down
2 changes: 1 addition & 1 deletion vit-servicing-station-tests/src/tests/rest/funds.rs
Expand Up @@ -20,7 +20,7 @@ pub fn get_funds_list_is_not_empty() -> Result<(), Box<dyn std::error::Error>> {
#[test]
pub fn get_funds_by_id() -> Result<(), Box<dyn std::error::Error>> {
use pretty_assertions::assert_eq;
let temp_dir = TempDir::new().unwrap().into_persistent();
let temp_dir = TempDir::new().unwrap();
let mut expected_fund = data::funds().first().unwrap().clone();
let (hash, token) = data::token();

Expand Down
2 changes: 1 addition & 1 deletion vit-servicing-station-tests/src/tests/rest/proposals.rs
Expand Up @@ -29,7 +29,7 @@ pub fn get_proposals_list_is_not_empty() {

#[test]
pub fn get_proposal_by_id() -> Result<(), Box<dyn std::error::Error>> {
let temp_dir = TempDir::new().unwrap().into_persistent();
let temp_dir = TempDir::new().unwrap();

let mut gen = data::ArbitrarySnapshotGenerator::default();

Expand Down
2 changes: 1 addition & 1 deletion vit-servicing-station-tests/src/tests/rest/voteplan_id.rs
Expand Up @@ -5,7 +5,7 @@ use vit_servicing_station_lib::v0::endpoints::proposals::ProposalVoteplanIdAndIn

#[test]
pub fn get_proposals_by_voteplan_id_and_index() {
let temp_dir = TempDir::new().unwrap().into_persistent();
let temp_dir = TempDir::new().unwrap();
let snapshot = multivoteplan_snapshot();

let db_path = DbBuilder::new()
Expand Down

0 comments on commit 2e93c26

Please sign in to comment.