Skip to content

Commit

Permalink
Speed up lsf driver tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Jan 24, 2025
1 parent e453dfa commit 0e9f8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ert/unit_tests/scheduler/test_lsf_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ async def test_that_bsub_will_retry_and_fail(
bsub_path.chmod(bsub_path.stat().st_mode | stat.S_IEXEC)
driver = LsfDriver()
driver._max_bsub_attempts = 2
driver._sleep_time_between_cmd_retries = 0.2
driver._sleep_time_between_cmd_retries = 0.0
match_str = (
f"failed after 2 attempts with exit code {exit_code}.*"
f'error: "{error_msg if error_msg else "<empty>"}"'
Expand Down Expand Up @@ -666,7 +666,7 @@ async def test_that_bsub_will_retry_and_succeed(
bsub_path.chmod(bsub_path.stat().st_mode | stat.S_IEXEC)
driver = LsfDriver()
driver._max_bsub_attempts = 2
driver._sleep_time_between_cmd_retries = 0.2
driver._sleep_time_between_cmd_retries = 0.0
await driver.submit(0, "sleep 10")


Expand Down

0 comments on commit 0e9f8e0

Please sign in to comment.