Skip to content

Commit

Permalink
# sleep for 0.5 second to make sure the mdate is different
Browse files Browse the repository at this point in the history
  • Loading branch information
niradar committed May 27, 2024
1 parent 156f89d commit cb37321
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_functions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import time

from df_finder3 import parse_arguments, check_and_update_filename, \
clean_source_duplications, delete_empty_folders_in_tree, validate_duplicate_files_destination, validate_folder, \
compare_files, collect_source_files, get_file_key, any_is_subfolder_of
Expand Down Expand Up @@ -329,6 +331,9 @@ def test_compare_files(setup_teardown):

# Setup the files in the source directory
copy_files(range(1, 3), source_dir)

# sleep for 0.5 second to make sure the mdate is different
time.sleep(0.5)
copy_files(range(1, 3), target_dir)

# copy file 1 also with original name to source folder
Expand Down

0 comments on commit cb37321

Please sign in to comment.