From b4bb03d34773832f066ace7634b5e01b0dc06e07 Mon Sep 17 00:00:00 2001 From: morris25 Date: Thu, 23 Sep 2021 15:28:24 -0500 Subject: [PATCH] Add more retries --- test/batch_node_online.jl | 4 ++-- test/utils.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/batch_node_online.jl b/test/batch_node_online.jl index ad18708..6a9b2c5 100644 --- a/test/batch_node_online.jl +++ b/test/batch_node_online.jl @@ -384,7 +384,7 @@ end @test status(worker_job) == AWSBatch.SUCCEEDED manager_log = log_messages(manager_job) - worker_log = log_messages(worker_job, retries=0) + worker_log = log_messages(worker_job; retries=0) test_results = [ @test occursin("Only 0 of the 1 workers job have reported in", manager_log) @test isempty(worker_log) @@ -393,7 +393,7 @@ end # Display the logs for all the jobs if any of the log tests fail if any(r -> !(r isa Test.Pass), test_results) @info "Details for manager:\n$(report(manager_job))" - @info "Details for worker:\n$(report(worker_log))" + @info "Details for worker:\n$(report(worker_job))" end end diff --git a/test/utils.jl b/test/utils.jl index 12d5cb4..64c47fa 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -1,5 +1,5 @@ # Gets the logs messages associated with a AWSBatch BatchJob as a single string -function log_messages(job::BatchJob; retries=2, wait_interval=7) +function log_messages(job::BatchJob; retries=5, wait_interval=7) i = 0 events = log_events(job) # Retry if no logs are found