summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCaden Haustein <code@brightlysalty.33mail.com>2021-02-16 07:50:41 +0000
committerGitHub <noreply@github.com>2021-02-16 08:50:41 +0100
commit573f34d757434a5580abd45f5a059c908552d0b3 (patch)
tree90ff756a53878f257fbeb6f9d63d8bbe3a8b296f /tests
parenteac36dd3b51b28ef73b46f056aec905131c0069c (diff)
Update dependencies; replace unmaintained (#1522)
* Update dependencies; replace unmaintained * Fix errors * Revert dependency changes * Revert git2 to 0.13.15 Co-authored-by: David Peter <mail@david-peter.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_tests.rs4
-rw-r--r--tests/tester.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index ce44933b..87c587a4 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -946,9 +946,9 @@ fn file_with_invalid_utf8_filename() {
use std::io::Write;
use std::os::unix::ffi::OsStrExt;
- use tempdir::TempDir;
+ use tempfile::TempDir;
- let tmp_dir = TempDir::new("bat_test").expect("can create temporary directory");
+ let tmp_dir = TempDir::new().expect("can create temporary directory");
let file_path = tmp_dir
.path()
.join(OsStr::from_bytes(b"test-invalid-utf8-\xC3(.rs"));
diff --git a/tests/tester.rs b/tests/tester.rs
index 8a1a0f3b..8ddea11f 100644
--- a/tests/tester.rs
+++ b/tests/tester.rs
@@ -4,7 +4,7 @@ use std::io::Read;
use std::path::{Path, PathBuf};
use std::process::Command;
-use tempdir::TempDir;
+use tempfile::TempDir;
use git2::build::CheckoutBuilder;
use git2::Repository;
@@ -70,7 +70,7 @@ impl Default for BatTester {
fn create_sample_directory() -> Result<TempDir, git2::Error> {
// Create temp directory and initialize repository
- let temp_dir = TempDir::new("bat-tests").expect("Temp directory");
+ let temp_dir = TempDir::new().expect("Temp directory");
let repo = Repository::init(&temp_dir)?;
// Copy over `sample.rs`