Skip to content

Commit

Permalink
fix: run e2e tests sequentially
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelmmiguel committed Oct 5, 2023
1 parent 697f064 commit 5677688
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,14 @@ mod test {
}

#[test]
// Use this approach to run tests sequentially
fn test_end_to_end() {
// Run them in a method to ensure they run sequentially
examples_end_to_end();
not_found_end_to_end();
}

// Use this approach to run tests sequentially
fn examples_end_to_end() {
// Allow configuring waiting times. It avoids having long waiting times
// in development, while making it configurable in the CI
let max_timeout = env::var("E2E_MAX_WAITING_TIME").map_or(DEFAULT_MAX_TIMEOUT, |str| {
Expand Down Expand Up @@ -228,8 +234,7 @@ mod test {
}
}

#[test]
fn test_not_found_examples() {
fn not_found_end_to_end() {
// Allow configuring waiting times. It avoids having long waiting times
// in development, while making it configurable in the CI
let max_timeout = env::var("E2E_MAX_WAITING_TIME").map_or(DEFAULT_MAX_TIMEOUT, |str| {
Expand Down

0 comments on commit 5677688

Please sign in to comment.