def METHOD_NAME(file):
    fim.modify_file_content(testdir1, file, new_content='Sample modification')
    fim.check_time_travel(scheduled, monitor=wazuh_log_monitor)
    ev = wazuh_log_monitor.start(timeout=3, callback=fim.callback_detect_event).result()
    assert 'modified' in ev['data']['type'] and os.path.join(testdir1, file) in ev['data']['path'], \
        f"'modified' event not matching for {testdir1} {file}"