diff --git a/Cargo.lock b/Cargo.lock index 12d6e14..f82fc2d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,21 +20,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "anstream" -version = "0.6.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a" -dependencies = [ - "anstyle", - "anstyle-parse 0.2.7", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "is_terminal_polyfill", - "utf8parse", -] - [[package]] name = "anstream" version = "1.0.0" @@ -42,7 +27,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" dependencies = [ "anstyle", - "anstyle-parse 1.0.0", + "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", @@ -56,15 +41,6 @@ version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" -[[package]] -name = "anstyle-parse" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" -dependencies = [ - "utf8parse", -] - [[package]] name = "anstyle-parse" version = "1.0.0" @@ -335,7 +311,7 @@ version = "4.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f" dependencies = [ - "anstream 1.0.0", + "anstream", "anstyle", "clap_lex", "strsim 0.11.1", @@ -521,11 +497,11 @@ checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe" [[package]] name = "env_logger" -version = "0.11.9" +version = "0.11.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2daee4ea451f429a58296525ddf28b45a3b64f1acf6587e2067437bb11e218d" +checksum = "0621c04f2196ac3f488dd583365b9c09be011a4ab8b9f37248ffcc8f6198b56a" dependencies = [ - "anstream 0.6.21", + "anstream", "anstyle", "env_filter", "jiff", diff --git a/Cargo.toml b/Cargo.toml index 27c82c4..a6b1c01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ notify = "8.2.0" clap = { version = "4.6.0", features = ["derive"] } local-ip-address = "0.6.11" log = "0.4.29" -env_logger = "0.11.9" +env_logger = "0.11.10" notify-debouncer-full = "0.7.0" tokio = { version = "1.51.0", features = ["full"] } axum = { version = "0.8.8", features = ["ws"]} diff --git a/tests/end-to-end.rs b/tests/end-to-end.rs index 53679c3..6ba9ee6 100644 --- a/tests/end-to-end.rs +++ b/tests/end-to-end.rs @@ -45,14 +45,14 @@ fn subject_with(args: &[impl AsRef]) -> (Child, String) { async fn fresh_browser() -> (Browser, TempDir) { let data_dir = tempdir().unwrap(); - let (browser, handler) = Browser::launch( - BrowserConfig::builder() - .user_data_dir(data_dir.path()) - .build() - .unwrap(), - ) - .await - .unwrap(); + // GitHub's Windows runners can take longer than chromiumoxide's default + // 20-second launch timeout to expose the DevTools websocket URL. + let config = BrowserConfig::builder() + .user_data_dir(data_dir.path()) + .launch_timeout(Duration::from_secs(60)) + .build() + .unwrap(); + let (browser, handler) = Browser::launch(config).await.unwrap(); tokio::spawn(async move { handler.for_each(async |_| {}).await; });