Skip to content

Commit 856b0d2

Browse files
committed
wip
1 parent a3bd2a5 commit 856b0d2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

agent-control/tests/on_host/scenarios/filesystem_ops.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
use std::{fs::read_to_string, path::Path, time::Duration};
1+
use std::{
2+
fs::read_to_string,
3+
path::{Path, PathBuf},
4+
time::Duration,
5+
};
26

37
use newrelic_agent_control::agent_control::{
48
defaults::GENERATED_FOLDER_NAME,
@@ -102,8 +106,14 @@ fn complete_render_and_and_write_files_and_dirs() {
102106
let agent_id = "test-agent";
103107

104108
// Rendered file paths
105-
let yaml_file_path = "randomdir/randomfile.yaml";
106-
let string_file_path = "randomdir-2/some_string.txt";
109+
let yaml_file_path = PathBuf::from("randomdir")
110+
.join("randomfile.yaml")
111+
.to_string_lossy()
112+
.to_string();
113+
let string_file_path = PathBuf::from("randomdir-2")
114+
.join("some-string.txt")
115+
.to_string_lossy()
116+
.to_string();
107117

108118
// Rendered directory paths
109119
let dir_path = "somedir";

0 commit comments

Comments
 (0)