File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
agent-control/tests/on_host/scenarios Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 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
37use 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" ;
You can’t perform that action at this time.
0 commit comments