Skip to content

Commit

Permalink
tests: config: Remove --build-dir arg
Browse files Browse the repository at this point in the history
Not needed, as each index command now creates a separate dir.
  • Loading branch information
tontinton committed Jun 15, 2024
1 parent edcd621 commit 3814a71
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use color_eyre::Result;
use ctor::ctor;
use pretty_env_logger::formatted_timed_builder;
use rstest::rstest;
use tempfile::TempDir;
use tokio::{
fs::{read_dir, remove_dir_all},
io::AsyncWriteExt,
Expand Down Expand Up @@ -149,18 +148,11 @@ async fn test_config(

run_create_from_config(&config, &postgres.pool).await?;

let temp_build_dir = TempDir::new()?;
let mut index_file = TempFile::new().await?;
index_file.write_all(index_input.trim().as_bytes()).await?;

run_index(
IndexArgs::parse_from([
"",
&config.name,
&index_file.file_path().to_string_lossy(),
"--build-dir",
&temp_build_dir.path().to_string_lossy(),
]),
IndexArgs::parse_from(["", &config.name, &index_file.file_path().to_string_lossy()]),
&postgres.pool,
)
.await?;
Expand Down

0 comments on commit 3814a71

Please sign in to comment.