Skip to content

Commit

Permalink
Small fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici committed May 3, 2024
1 parent f22589d commit 33eed40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backends.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ calibrate(config::ExperimentConfig; kwargs...) =
calibrate(experiment_path::AbstractString) =
calibrate(get_backend(), ExperimentConfig(experiment_path))

calibrate(::Type{JuliaBackend}, experiment_path::AbstractString) =
calibrate(get_backend(), ExperimentConfig(experiment_path))

function calibrate(::Type{JuliaBackend}, config::ExperimentConfig)
initialize(config)
(; n_iterations, id, ensemble_size) = config
Expand Down
1 change: 1 addition & 0 deletions test/slurm_unit_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ sleep(180) # Ensure job finishes. To debug, lower sleep time or comment out the
# Test job cancellation
jobid = submit_cmd_helper(test_cmd)
CAL.kill_slurm_job(jobid)
sleep(1)
@test CAL.job_status(jobid) == "FAILED"
@test CAL.job_completed(CAL.job_status(jobid)) && CAL.job_failed(CAL.job_status(jobid))

Expand Down

0 comments on commit 33eed40

Please sign in to comment.