Skip to content

Commit

Permalink
disable tls1.3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo committed May 3, 2023
1 parent 63e7b86 commit 426d740
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions mbedtls/tests/client_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ mod test {

let test_configs = [
TestConfig::new(Version::Tls1_2, Version::Tls1_2, Version::Tls1_2, Version::Tls1_2, Some(Version::Tls1_2)),
TestConfig::new(Version::Tls1_2, Version::Tls1_3, Version::Tls1_3, Version::Tls1_3, Some(Version::Tls1_3)),
TestConfig::new(Version::Tls1_3, Version::Tls1_3, Version::Tls1_3, Version::Tls1_3, Some(Version::Tls1_3)),
// TestConfig::new(Version::Tls1_2, Version::Tls1_3, Version::Tls1_3, Version::Tls1_3, Some(Version::Tls1_3)),
// TestConfig::new(Version::Tls1_3, Version::Tls1_3, Version::Tls1_3, Version::Tls1_3, Some(Version::Tls1_3)),
];

for config in &test_configs {
Expand Down
12 changes: 6 additions & 6 deletions mbedtls/tests/hyper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ mod tests {
}

#[test_case(0, test_name="test_simple_request_tls1_2")]
#[test_case(1, test_name="test_simple_request_tls1_3")]
// #[test_case(1, test_name="test_simple_request_tls1_3")]
fn test_simple_request(ver_int : u32) {
// use mutex to avoid too much request at same time
let _guard = support::TEST_MUTEX.lock().unwrap();
Expand All @@ -245,7 +245,7 @@ mod tests {


#[test_case(0, test_name="test_multiple_request_tls1_2")]
#[test_case(1, test_name="test_multiple_request_tls1_3")]
// #[test_case(1, test_name="test_multiple_request_tls1_3")]
fn test_multiple_request(ver_int : u32) {
// use mutex to avoid too much request at same time
let _guard = support::TEST_MUTEX.lock().unwrap();
Expand Down Expand Up @@ -278,7 +278,7 @@ mod tests {
}

#[test_case(0, test_name="test_hyper_multithread_tls1_2")]
#[test_case(1, test_name="test_hyper_multithread_tls1_3")]
// #[test_case(1, test_name="test_hyper_multithread_tls1_3")]
fn test_hyper_multithread(ver_int: u32) {
// use mutex to avoid too much request at same time
let _guard = support::TEST_MUTEX.lock().unwrap();
Expand Down Expand Up @@ -316,7 +316,7 @@ mod tests {


#[test_case(0, test_name="test_verify_tls1_2")]
#[test_case(1, test_name="test_verify_tls1_3")]
// #[test_case(1, test_name="test_verify_tls1_3")]
fn test_verify(ver_int : u32) {
let mut config = Config::new(Endpoint::Client, Transport::Stream, Preset::Default);

Expand Down Expand Up @@ -351,7 +351,7 @@ mod tests {


#[test_case(0, test_name="test_hyper_server_tls1_2")]
#[test_case(1, test_name="test_hyper_server_tls1_3")]
// #[test_case(1, test_name="test_hyper_server_tls1_3")]
fn test_hyper_server(ver_int : u32) {
std::env::set_var("RUST_BACKTRACE", "full");
let mut config = Config::new(Endpoint::Server, Transport::Stream, Preset::Default);
Expand Down Expand Up @@ -407,7 +407,7 @@ mod tests {
}

#[test_case(0, test_name="test_sni_hyper_server_tls1_2")]
#[test_case(1, test_name="test_sni_hyper_server_tls1_3")]
// #[test_case(1, test_name="test_sni_hyper_server_tls1_3")]
fn test_sni_hyper_server(ver_int : u32) {
std::env::set_var("RUST_BACKTRACE", "full");

Expand Down

0 comments on commit 426d740

Please sign in to comment.