Skip to content

Commit f0647d8

Browse files
authored
Test suite: Add tests for show(io, ::ElasticManager) (#254)
1 parent e5e35ec commit f0647d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/elastic.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,14 @@
1212
end
1313

1414
wait(rmprocs(workers()))
15+
16+
@testset "show(io, ::ElasticManager)" begin
17+
str = sprint(show, em)
18+
lines = strip.(split(strip(str), '\n'))
19+
@test lines[1] == "ElasticManager:"
20+
@test lines[2] == "Active workers : []"
21+
@test lines[3] == "Number of workers to be added : 0"
22+
@test lines[4] == "Terminated workers : [ 2]"
23+
@test lines[5] == "Worker connect command :"
24+
end
1525
end

0 commit comments

Comments
 (0)