Skip to content

Commit

Permalink
small test reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Oct 12, 2024
1 parent 9470d21 commit 5d8269e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Coaraci/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 5d8269e

Please sign in to comment.