@@ -875,7 +875,7 @@ mod tests {
875875
876876 // Modify a file in the source environment
877877 let modified_content = "modified test data\n " ;
878- let newer_time = base_time + Duration :: from_secs ( 3600 ) ; // 1 hour later
878+ let newer_time = base_time + Duration :: from_hours ( 1 ) ; // 1 hour later
879879 modify_file (
880880 src_env. path ( ) ,
881881 "bin/test-file" ,
@@ -919,7 +919,7 @@ mod tests {
919919
920920 // Add a new file to the source environment
921921 let new_file_content = "new file content\n " ;
922- let newer_time = base_time + Duration :: from_secs ( 3600 ) ; // 1 hour later
922+ let newer_time = base_time + Duration :: from_hours ( 1 ) ; // 1 hour later
923923 add_file (
924924 src_env. path ( ) ,
925925 "lib/new-file.txt" ,
@@ -966,7 +966,7 @@ mod tests {
966966 let dst_env = setup_conda_env ( TempDir :: new ( ) ?, base_time, None ) . await ?;
967967
968968 // Create a new directory with a file in the source environment
969- let newer_time = base_time + Duration :: from_secs ( 3600 ) ; // 1 hour later
969+ let newer_time = base_time + Duration :: from_hours ( 1 ) ; // 1 hour later
970970 fs:: create_dir ( src_env. path ( ) . join ( "new_dir" ) ) . await ?;
971971 add_file (
972972 src_env. path ( ) ,
@@ -1021,7 +1021,7 @@ mod tests {
10211021 fs:: symlink ( "bin/test-file" , src_env. path ( ) . join ( "link-to-test" ) ) . await ?;
10221022
10231023 // Set a newer time for the symlink to ensure it's synced
1024- let newer_time = base_time + Duration :: from_secs ( 3600 ) ; // 1 hour later
1024+ let newer_time = base_time + Duration :: from_hours ( 1 ) ; // 1 hour later
10251025 set_mtime ( & src_env. path ( ) . join ( "link-to-test" ) , newer_time) . await ?;
10261026
10271027 // Sync changes from source to destination
@@ -1061,7 +1061,7 @@ mod tests {
10611061 let dst_env = setup_conda_env ( TempDir :: new ( ) ?, base_time, None ) . await ?;
10621062
10631063 // Add an extra file to the destination that doesn't exist in source
1064- let newer_time = base_time + Duration :: from_secs ( 3600 ) ; // 1 hour later
1064+ let newer_time = base_time + Duration :: from_hours ( 1 ) ; // 1 hour later
10651065 add_file (
10661066 dst_env. path ( ) ,
10671067 "extra-file.txt" ,
@@ -1099,7 +1099,7 @@ mod tests {
10991099 let dst_env = setup_conda_env ( TempDir :: new ( ) ?, base_time, None ) . await ?;
11001100
11011101 // Add a .pyc file to the source.
1102- let newer_time = base_time + Duration :: from_secs ( 3600 ) ; // 1 hour later
1102+ let newer_time = base_time + Duration :: from_hours ( 1 ) ; // 1 hour later
11031103 add_file (
11041104 src_env. path ( ) ,
11051105 "lib/test.pyc" ,
@@ -1156,7 +1156,7 @@ mod tests {
11561156 let dst_env = setup_conda_env ( TempDir :: new ( ) ?, base_time, None ) . await ?;
11571157
11581158 // Add an executable file to the source
1159- let newer_time = base_time + Duration :: from_secs ( 3600 ) ; // 1 hour later
1159+ let newer_time = base_time + Duration :: from_hours ( 1 ) ; // 1 hour later
11601160 add_file (
11611161 src_env. path ( ) ,
11621162 "bin/executable" ,
@@ -1208,7 +1208,7 @@ mod tests {
12081208 let dst_env = setup_conda_env ( TempDir :: new ( ) ?, base_time, Some ( dst_prefix) ) . await ?;
12091209
12101210 // Add a text file with prefix references to the source
1211- let newer_time = base_time + Duration :: from_secs ( 3600 ) ;
1211+ let newer_time = base_time + Duration :: from_hours ( 1 ) ;
12121212 let text_content = format ! (
12131213 "#!/bin/bash\n export PATH={}/bin:$PATH\n echo 'Using prefix: {}'\n " ,
12141214 src_prefix, src_prefix
@@ -1264,7 +1264,7 @@ mod tests {
12641264 let dst_env = setup_conda_env ( TempDir :: new ( ) ?, base_time, Some ( dst_prefix) ) . await ?;
12651265
12661266 // Create a binary file with embedded prefix and null bytes
1267- let newer_time = base_time + Duration :: from_secs ( 3600 ) ;
1267+ let newer_time = base_time + Duration :: from_hours ( 1 ) ;
12681268 let mut binary_content = Vec :: new ( ) ;
12691269 binary_content. extend_from_slice ( b"\x7f ELF" ) ; // ELF magic number
12701270 binary_content. extend_from_slice ( & [ 0u8 ; 10 ] ) ; // null bytes to make it binary
@@ -1315,7 +1315,7 @@ mod tests {
13151315 let dst_env = setup_conda_env ( TempDir :: new ( ) ?, base_time, Some ( dst_prefix) ) . await ?;
13161316
13171317 // Create a symlink that points to a path with the source prefix
1318- let newer_time = base_time + Duration :: from_secs ( 3600 ) ;
1318+ let newer_time = base_time + Duration :: from_hours ( 1 ) ;
13191319 let symlink_target = format ! ( "{}/lib/target-file" , src_prefix) ;
13201320 fs:: symlink ( & symlink_target, src_env. path ( ) . join ( "bin/link-to-target" ) ) . await ?;
13211321 set_mtime ( & src_env. path ( ) . join ( "bin/link-to-target" ) , newer_time) . await ?;
@@ -1350,7 +1350,7 @@ mod tests {
13501350 let dst_env = setup_conda_env ( TempDir :: new ( ) ?, base_time, Some ( dst_prefix) ) . await ?;
13511351
13521352 // Create a symlink that points to a relative path (should not be modified)
1353- let newer_time = base_time + Duration :: from_secs ( 3600 ) ;
1353+ let newer_time = base_time + Duration :: from_hours ( 1 ) ;
13541354 let symlink_target = "relative/path/target" ;
13551355 fs:: symlink ( & symlink_target, src_env. path ( ) . join ( "bin/relative-link" ) ) . await ?;
13561356 set_mtime ( & src_env. path ( ) . join ( "bin/relative-link" ) , newer_time) . await ?;
@@ -1385,7 +1385,7 @@ mod tests {
13851385 let dst_env = setup_conda_env ( TempDir :: new ( ) ?, base_time, Some ( dst_prefix) ) . await ?;
13861386
13871387 // Create a binary file with embedded prefix and null bytes
1388- let newer_time = base_time + Duration :: from_secs ( 3600 ) ;
1388+ let newer_time = base_time + Duration :: from_hours ( 1 ) ;
13891389 let mut binary_content = Vec :: new ( ) ;
13901390 binary_content. extend_from_slice ( b"\x7f ELF" ) ; // ELF magic number
13911391 binary_content. extend_from_slice ( & [ 0u8 ; 10 ] ) ; // null bytes to make it binary
0 commit comments