using Test

@testset "Examples - simpleswitch 2" begin
    try
        include("../../examples/simpleswitch/2_wglmakie_interactive.jl")
    finally
        if isdefined(@__MODULE__, :server)
            # The example may fail before the server is created.
            close(server)
            wait(server)
        end
    end
end
