From f51991c84cb8804d540fc818fc2b9dad7381a4a1 Mon Sep 17 00:00:00 2001 From: tlienart Date: Wed, 10 Apr 2024 13:03:03 +0200 Subject: [PATCH] fixing tests (no more port range check) --- Project.toml | 2 +- src/utils.jl | 2 +- test/server.jl | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 029a647..dbaee7b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "LiveServer" uuid = "16fef848-5104-11e9-1b77-fb7a48bbb589" authors = ["Jonas Asprion "] -version = "1.3.0" +version = "1.3.1" [deps] HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3" diff --git a/src/utils.jl b/src/utils.jl index 7fd7fca..27031fe 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -209,7 +209,7 @@ doc environment or not (i.e. the `Project.toml` in `docs/`). * `makejl="make.jl"`: path of the script generating the documentation relative to `foldername`. * `host="127.0.0.1"`: where the server will start. -* `port=8000`: port number, an integer between 8000 (default) and 9000. +* `port=8000`: port number. * `launch_browser=false`: specifies whether to launch a browser at the localhost URL or not. """ diff --git a/test/server.jl b/test/server.jl index f82ab56..c1a651f 100644 --- a/test/server.jl +++ b/test/server.jl @@ -44,9 +44,6 @@ tasks that you will try to start. # # STEP 1: launching the listener # - # assert 8000 ≤ port ≦ 9000 - @test_throws ArgumentError serve(port=7000) - @test_throws ArgumentError serve(port=10000) # define filewatcher outside so that can follow it fw = LS.SimpleWatcher(LS.file_changed_callback)