Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/test_config_hotreload.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_no_paths_then_add(fact, fact_config, monitored_dir, server):
# Remove all paths
config, config_file = fact_config
config['paths'] = []
reload_config(fact, config, config_file)
reload_config(fact, config, config_file, 1)

# Write to a file — should NOT produce events
fut = os.path.join(monitored_dir, 'test2.txt')
Expand All @@ -180,7 +180,7 @@ def test_no_paths_then_add(fact, fact_config, monitored_dir, server):

# Add paths back
config['paths'] = [f'{monitored_dir}/**/*']
reload_config(fact, config, config_file)
reload_config(fact, config, config_file, 1)

# Write to a file — should produce events
with open(fut, 'w') as f:
Expand Down Expand Up @@ -209,7 +209,7 @@ def test_paths_then_remove(fact, fact_config, monitored_dir, server):
# Remove all paths
config, config_file = fact_config
config['paths'] = []
reload_config(fact, config, config_file)
reload_config(fact, config, config_file, 1)

# Write to a file — should NOT produce events
with open(fut, 'w') as f:
Expand Down
Loading