Skip to content

Commit

Permalink
attempt #3 to fix linux build #build-linux
Browse files Browse the repository at this point in the history
  • Loading branch information
amodm committed Dec 23, 2022
1 parent d124314 commit 5359292
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- uses: actions-rs/cargo@v1
name: Run Tests
env:
BROWSER: firefox %s
BROWSER: firefox --screenshot %s
with:
command: test
args: --all --locked --verbose
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ actix-files = "0.6"
crossbeam-channel = "0.5"
env_logger = "0.9.0"
rand = "0.8"
serial_test = "0.10"
tokio = { version = "1", features = ["full"] }
urlencoding = "2.1"

Expand Down
5 changes: 5 additions & 0 deletions tests/test_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ mod tests {
const TEST_PLATFORM: &str = "unix";

use super::common::{check_browser, check_local_file};
use serial_test::serial;
use webbrowser::Browser;

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[serial]
async fn test_open_default() {
check_browser(Browser::Default, TEST_PLATFORM).await;
}
Expand All @@ -24,6 +26,7 @@ mod tests {
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[serial]
async fn test_local_file_abs_path() {
check_local_file(Browser::Default, None, |pb| {
pb.as_os_str().to_string_lossy().into()
Expand All @@ -32,6 +35,7 @@ mod tests {
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[serial]
async fn test_local_file_rel_path() {
let cwd = std::env::current_dir().expect("unable to get current dir");
check_local_file(Browser::Default, None, |pb| {
Expand All @@ -45,6 +49,7 @@ mod tests {
}

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[serial]
async fn test_local_file_uri() {
check_local_file(Browser::Default, None, |pb| {
url::Url::from_file_path(pb)
Expand Down

0 comments on commit 5359292

Please sign in to comment.