Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename tmp to tempdir
  • Loading branch information
Scott Piriou committed Apr 13, 2020
commit 04a994f5cd947c258eafa56ee95d0447aa498784
4 changes: 2 additions & 2 deletions tests/invalid_order_arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use tempfile::tempdir;
#[test]
#[cfg(unix)]
fn invalid_order_arguments() {
let tmp = tempdir().expect("could not create temp dir");
let base_path = tmp.path().to_str().expect("path should consist of valid utf8 characters");
let tmpdir = tempdir().expect("could not create temp dir");
let base_path = tmpdir.path().to_str().expect("path should consist of valid utf8 characters");

let status = Command::new(cargo_bin("polkadot"))
.args(&["--dev", "invalid_order_arguments", "-d", base_path, "-y"])
Expand Down
4 changes: 2 additions & 2 deletions tests/running_the_node_and_interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ fn running_the_node_works_and_can_be_interrupted() {
use nix::unistd::Pid;

fn run_command_and_kill(signal: Signal) {
let tmp = tempdir().expect("coult not create temp dir");
let base_path = tmp.path().to_str().expect("path should be valid utf8");
let tmpdir = tempdir().expect("coult not create temp dir");
let base_path = tmpdir.path().to_str().expect("path should be valid utf8");

let mut cmd = Command::new(cargo_bin("polkadot"))
.args(&["--dev", "-d", base_path])
Expand Down