Skip to content

Commit

Permalink
chore: maybe dirs aren't created
Browse files Browse the repository at this point in the history
  • Loading branch information
ICavlek committed Oct 22, 2024
1 parent a3995fb commit c4883b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 3 additions & 4 deletions tests/account_katana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,14 @@ async fn deploy_multiple_accounts_on_katana() -> Result<(), Error> {
if false {
update_account(&path)?;
}
copy_to_target()?;
let compilation =
tokio::task::spawn_blocking(move || -> Result<(), anyhow::Error> {
let toml = path + "/Scarb.toml";
copy_to_target()?;
let compiler = Compiler::new(&toml).unwrap();
compiler.compile()
})
.await;
match compilation {
});
match compilation.await {
Ok(val) => val?,
Err(e) => {
return Err(Error::Anyhow(anyhow!(
Expand Down
3 changes: 0 additions & 3 deletions tests/starknet/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ pub fn update_account(path: &str) -> Result<(), Error> {

#[allow(dead_code)]
pub fn copy_to_target() -> Result<(), Error> {
if fs::metadata("./target").is_err() {
fs::create_dir("./target").unwrap();
}
if fs::metadata("./target/account").is_err() {
fs::create_dir("./target/account/").unwrap();
fs::create_dir("./target/account/src/").unwrap();
Expand Down

0 comments on commit c4883b6

Please sign in to comment.