From 5d8269e5d22eb239af512e025026bc7a82d03d28 Mon Sep 17 00:00:00 2001 From: Leandro Martinez Date: Fri, 11 Oct 2024 22:11:29 -0300 Subject: [PATCH] small test reordering --- src/Coaraci/runtests.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Coaraci/runtests.jl b/src/Coaraci/runtests.jl index 22ac03d..73f5e45 100644 --- a/src/Coaraci/runtests.jl +++ b/src/Coaraci/runtests.jl @@ -3,9 +3,6 @@ # Print to stdout Coaraci.options.stdout = true Coaraci.options.sleep = 0.05 - if haskey(ENV, "CLUSTER_INTERFACE_TEST") - pop!(ENV, "CLUSTER_INTERFACE_TEST") - end @kwdef struct TestTask title::String delay::Float64 @@ -28,6 +25,9 @@ end @testitem "Argument errors" setup=[CoaraciTests] begin + if haskey(ENV, "CLUSTER_INTERFACE_TEST") + pop!(ENV, "CLUSTER_INTERFACE_TEST") + end task_list = [ TestTask("A", 0.1, tempname()), TestTask("B", 0.2, tempname()) ] @test_throws ArgumentError Coaraci.simulate(task_list; task_finished, task_title, task_run) ENV["CLUSTER_INTERFACE_TEST"] = "true"