diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c1848751..f187c59b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: - os: macos-latest e2e_time: 20 - os: windows-latest - e2e_time: 30 + e2e_time: 60 runs-on: ${{ matrix.os }} env: E2E_WAITING_TIME: ${{ matrix.e2e_time }} diff --git a/tests/e2e.rs b/tests/e2e.rs index 5f2a84b0..fcfc9a46 100644 --- a/tests/e2e.rs +++ b/tests/e2e.rs @@ -67,6 +67,8 @@ mod test { } }; + println!("Body content: {body}"); + // Test assert!(body.contains(expected_text)); @@ -88,6 +90,18 @@ mod test { }; let tests = [ + ( + "rust-basic", + global_timeout.unwrap_or(10), + "http://localhost:8080/basic", + "This page was generated by a Wasm module built from Rust", + ), + ( + "rust-kv", + global_timeout.unwrap_or(10), + "http://localhost:8080/kv", + "Counter: 0", + ), ( "js-basic", global_timeout.unwrap_or(10), @@ -106,18 +120,6 @@ mod test { "http://localhost:8080/thisisatest", "thisisatest", ), - ( - "rust-basic", - global_timeout.unwrap_or(10), - "http://localhost:8080/basic", - "This page was generated by a Wasm module built from Rust", - ), - ( - "rust-kv", - global_timeout.unwrap_or(10), - "http://localhost:8080/kv", - "Counter: 0", - ), ]; for (example, waiting_seconds, url, expected_text) in tests {