Skip to content

Commit

Permalink
Patch the trigger creation
Browse files Browse the repository at this point in the history
  • Loading branch information
lahtinep committed Nov 13, 2024
1 parent 79f1455 commit 962e875
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytroll_collectors/tests/test_geographic_gatherer.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,9 @@ def test_sigterm(tmp_config_file, tmp_config_parser):

opts = arg_parse(["-c", "minimal_config", "-p", "40000", "-n", "false", "-i", "localhost:12345",
str(tmp_config_file)])
gatherer = GeographicGatherer(opts)
# We don't need the triggers here. They also interfere with completing the test (the test never exits)
with patch("pytroll_collectors.geographic_gatherer.TriggerFactory.create"):
gatherer = GeographicGatherer(opts)
proc = Process(target=gatherer.run)
proc.start()
time.sleep(1)
Expand Down

0 comments on commit 962e875

Please sign in to comment.