From b1c46bcd33331dcbf47bf39ddbc8b87a6c209076 Mon Sep 17 00:00:00 2001 From: Jake Dawkins Date: Wed, 2 Dec 2020 12:45:32 -0500 Subject: [PATCH] update tests --- src/command/graph/push.rs | 4 ++-- src/command/subgraph/push.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/command/graph/push.rs b/src/command/graph/push.rs index 7bf3c975e..a0186f5ed 100644 --- a/src/command/graph/push.rs +++ b/src/command/graph/push.rs @@ -102,7 +102,7 @@ mod tests { #[test] fn get_schema_from_file_path_loads() { let temp_dir = TempDir::new().unwrap(); - let file_path = temp_dir.path().join("schema.graphql"); + let file_path = "./schema.graphql"; let mut temp_file = File::create(file_path.clone()).unwrap(); write!(temp_file, "type Query {{ hello: String! }}").unwrap(); @@ -112,7 +112,7 @@ mod tests { #[test] fn get_schema_from_file_path_errs_on_bad_path() { - let empty_path = std::path::PathBuf::new().join("wow.graphql"); + let empty_path = "./wow.graphql"; let schema = get_schema_from_file_path(&empty_path); assert_eq!(schema.is_err(), true); } diff --git a/src/command/subgraph/push.rs b/src/command/subgraph/push.rs index d58830f97..f1c28e732 100644 --- a/src/command/subgraph/push.rs +++ b/src/command/subgraph/push.rs @@ -135,7 +135,7 @@ mod tests { #[test] fn get_schema_from_file_path_loads() { let temp_dir = TempDir::new().unwrap(); - let file_path = temp_dir.path().join("schema.graphql"); + let file_path = "./schema.graphql"; let mut temp_file = File::create(file_path.clone()).unwrap(); write!(temp_file, "type Query {{ hello: String! }}").unwrap(); @@ -145,7 +145,7 @@ mod tests { #[test] fn get_schema_from_file_path_errs_on_bad_path() { - let empty_path = std::path::PathBuf::new().join("wow.graphql"); + let empty_path = "./wow.graphql"; let schema = get_schema_from_file_path(&empty_path); assert_eq!(schema.is_err(), true); }