Skip to content

Commit 966c15d

Browse files
committed
fix tests
1 parent 87e80ce commit 966c15d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/providers/generic_http.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function WebIOServer(
102102
baseurl::String = "127.0.0.1", http_port::Int = 8081,
103103
verbose = false, singleton = true,
104104
websocket_route = "/webio_websocket/",
105-
logger = Base.DevNull(),
105+
logger = devnull,
106106
server_kw_args...
107107
)
108108
# TODO test if actually still running, otherwise restart even if singleton

test/http-tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ using Test
55

66
@testset "HTTP provider" begin
77
output = sprint(io-> show(io, MIME"application/webio"(), node(:div, "hi")))
8-
@test occursin("<script> var websocket_url = \"127.0.0.1:8081/webio_websocket/\" </script>", output)
8+
@test occursin("<script> var websocket_url = \"ws://127.0.0.1:8081/webio_websocket/\" </script>", output)
99
@test occursin("""{"props":{},"nodeType":"DOM","type":"node","instanceArgs":{"namespace":"html","tag":"div"},"children":["hi"]}""", output)
10-
@test WebIO.webio_server_config[] == (url = "127.0.0.1", http_port = 8081, ws_url = "127.0.0.1:8081/webio_websocket/")
10+
@test WebIO.webio_server_config[] == (url = "127.0.0.1", http_port = 8081, ws_url = "ws://127.0.0.1:8081/webio_websocket/")
1111
@test isassigned(WebIO.singleton_instance)
1212
end
1313

0 commit comments

Comments
 (0)