Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ async fn live_chromium_module_dials_only_the_host_returned_socket_and_rejects_ch
let _guard = LIVE_TEST_LOCK.lock().await;
let allowed_listener = tokio::net::TcpListener::bind("127.0.0.1:0").await?;
let port = allowed_listener.local_addr()?.port();
let denied_listener = tokio::net::TcpListener::bind(("127.0.0.2", port)).await?;
// Use a distinct loopback address that does not require an interface alias
// (macOS only binds 127.0.0.1 by default).
let denied_listener =
tokio::net::TcpListener::bind((std::net::Ipv6Addr::LOCALHOST, port)).await?;
let allowed_address = allowed_listener.local_addr()?.to_string();
let rebound_address = denied_listener.local_addr()?.to_string();
let extra_allowed_connections = Arc::new(AtomicUsize::new(0));
Expand Down
1 change: 1 addition & 0 deletions scripts/test-features.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ esac
cargo test --locked --workspace
cargo test --locked --workspace --all-features
RUST_TEST_THREADS=1 TINYCOMPUTER_LIVE_BROWSER_TESTS=1 cargo test --locked -p tinycomputer-browser --features agent-browser live_
RUST_TEST_THREADS=1 TINYCOMPUTER_LIVE_BROWSER_EGRESS_TESTS=1 cargo test --locked -p tinycomputer --features static-link --lib live_chromium_
cargo test --locked -p tinycomputer --features static-link
cargo run --locked -p tinycomputer-examples --bin basic
forbidden="$(cargo tree -p tinycomputer-bus -e normal,build --prefix none | grep -Ei 'tinybus|tokio|reqwest|ureq|hyper|rusqlite|git2|agent-desktop' || true)"
Expand Down
Loading