Skip to content

Commit b57e628

Browse files
committed
run 3 tests serially to avoid mixing env vars
1 parent f128c11 commit b57e628

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integ_tests/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ use flate2::read::GzDecoder;
2121
use flate2::write::GzEncoder;
2222
use flate2::Compression;
2323
use serde_json::json;
24+
use serial_test::serial;
2425
use tower_http::compression::{CompressionBody, CompressionLayer};
2526

2627
#[test]
28+
#[serial]
2729
fn test_default_adapter_options() {
2830
env::set_var("PORT", "3000");
2931
env::set_var("HOST", "localhost");
@@ -67,6 +69,7 @@ fn test_default_adapter_options() {
6769
}
6870

6971
#[test]
72+
#[serial]
7073
fn test_adapter_options_from_namespaced_env() {
7174
env::set_var("AWS_LWA_PORT", "3000");
7275
env::set_var("AWS_LWA_HOST", "localhost");
@@ -108,6 +111,7 @@ fn test_adapter_options_from_namespaced_env() {
108111
}
109112

110113
#[test]
114+
#[serial]
111115
fn test_readiness_check_port_fallback_to_lwa_port() {
112116
env::remove_var("AWS_LWA_READINESS_CHECK_PORT");
113117
env::remove_var("READINESS_CHECK_PORT");

0 commit comments

Comments
 (0)