Skip to content

Commit

Permalink
Merge pull request #1391 from kade-robertson/patch-1
Browse files Browse the repository at this point in the history
fix: update chromedriver download URL, resolve test issues
  • Loading branch information
drager authored Jun 25, 2024
2 parents 32aaecf + 68e2688 commit 2e4c661
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: nanasess/setup-chromedriver@master
- if: matrix.os == 'macos-latest'
run: brew install --cask firefox
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
Expand Down
2 changes: 1 addition & 1 deletion src/test/webdriver/chromedriver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fn fetch_chromedriver_version() -> Result<String> {

fn assemble_chromedriver_url(chromedriver_version: &str, target: &str) -> String {
format!(
"https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/{version}/{target}/chromedriver-{target}.zip",
"https://storage.googleapis.com/chrome-for-testing-public/{version}/{target}/chromedriver-{target}.zip",
version = chromedriver_version,
target = target,
)
Expand Down
4 changes: 3 additions & 1 deletion tests/all/log_level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ fn matches_info() -> impl Predicate<str> + PredicateReflection {
}

fn matches_cargo() -> impl Predicate<str> + PredicateReflection {
contains("Finished release [optimized] target(s) in ")
contains("Finished release [optimized] target(s) in ").or(contains(
"Finished `release` profile [optimized] target(s) in ",
))
}

#[test]
Expand Down

0 comments on commit 2e4c661

Please sign in to comment.