Skip to content

Commit

Permalink
ci: skippable tls 1.3 test on unsupported images
Browse files Browse the repository at this point in the history
  • Loading branch information
steffengy committed Sep 21, 2024
1 parent d695b4a commit 76edb28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
- target: i686-pc-windows-gnu
channel: 1.60.0
os: windows-2022
env:
SCHANNEL_SKIP_TLS_13_TEST: ${{ matrix.os == 'windows-2019' && '1' || '0' }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
Expand Down
4 changes: 4 additions & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ fn verify_callback_success() {

#[test]
fn tls_13() {
if env::var("SCHANNEL_SKIP_TLS_13_TEST") == Ok("1".to_owned()) {
return
}

let creds = SchannelCred::builder()
.enabled_protocols(&[Protocol::Tls12, Protocol::Tls13])
.acquire(Direction::Outbound)
Expand Down

0 comments on commit 76edb28

Please sign in to comment.