Skip to content

Commit 3459e2c

Browse files
authored
change test server port (#396)
Avoids issues when using the test server with basic-webserver.
1 parent 8baa608 commit 3459e2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ci/rust_http_server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async fn handle_request(req: Request<Incoming>) -> Result<Response<BoxBody>, Gen
5050
#[tokio::main]
5151
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
5252
// Address to bind the server to
53-
let addr: SocketAddr = ([127, 0, 0, 1], 8000).into();
53+
let addr: SocketAddr = ([127, 0, 0, 1], 9000).into();
5454

5555
// Bind to the port and listen for incoming TCP connections
5656
let listener = TcpListener::bind(addr).await?;

examples/http.roc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ main! = |_args|
2525
# ----------------
2626

2727
hello_str : Str
28-
hello_str = Http.get_utf8!("http://localhost:8000/utf8test")?
28+
hello_str = Http.get_utf8!("http://localhost:9000/utf8test")?
2929
# If you want to see an example of the server side, see basic-cli/ci/rust_http_server/src/main.rs
3030

3131
Stdout.line!("I received '${hello_str}' from the server.\n")?
@@ -35,7 +35,7 @@ main! = |_args|
3535
3636
# We decode/deserialize the json `{ "foo": "something" }` into a Roc record
3737
38-
{ foo } = Http.get!("http://localhost:8000", Json.utf8)?
38+
{ foo } = Http.get!("http://localhost:9000", Json.utf8)?
3939
# If you want to see an example of the server side, see basic-cli/ci/rust_http_server/src/main.rs
4040
4141
Stdout.line!("The json I received was: { foo: \"$(foo)\" }\n")?

0 commit comments

Comments
 (0)