Skip to content

Commit 7fdfeb0

Browse files
committed
Fix bug in tests
1 parent 902bfb3 commit 7fdfeb0

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

test/containers.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
workspace()
2-
31
using SimJulia
42
using ResumableFunctions
53

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ for test_file in [
1111
"coroutines.jl",
1212
"containers.jl",
1313
"stores.jl",
14-
"continuous.jl",]
14+
"continuous.jl",
15+
]
1516
include(testpath(test_file))
1617
end

test/simulations.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ catch exc
2121
println("$exc has been thrown!")
2222
end
2323
sim = Simulation(3)
24-
start = now(sim)
24+
start_time = now(sim)
2525
@callback test_callback(Timeout(sim, 1))
26-
run(sim, start+2)
27-
println(now(sim)-start)
26+
run(sim, start_time+2)
27+
println(now(sim)-start_time)
2828
sim = Simulation()
29-
start = now(sim)
29+
start_time = now(sim)
3030
ev = Event(sim)
3131
@callback test_callback_exception(ev)
3232
succeed(ev)
3333
try
3434
run(sim)
3535
catch exc
36-
println("$exc has been thrown after $(now(sim)-start)!")
36+
println("$exc has been thrown after $(now(sim)-start_time)!")
3737
end

0 commit comments

Comments
 (0)