Skip to content

Commit

Permalink
Don't enable quic in tests if tls1.3 not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
lrstewart committed Jun 2, 2023
1 parent e097ecc commit 08aa39b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/s2n_alerts_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ int main(int argc, char **argv)
DEFER_CLEANUP(struct s2n_connection *conn = s2n_connection_new(S2N_CLIENT),
s2n_connection_ptr_free);
EXPECT_NOT_NULL(conn);
EXPECT_SUCCESS(s2n_connection_enable_quic(conn));
conn->quic_enabled = true;
conn->writer_alert_out = expected_alert;
conn->reader_alert_out = wrong_alert;

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/s2n_shutdown_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ int main(int argc, char **argv)
};

/* Test: Do not send or await close_notify if supporting QUIC */
{
if (s2n_is_tls13_fully_supported()) {
DEFER_CLEANUP(struct s2n_connection *conn = s2n_connection_new(S2N_SERVER),
s2n_connection_ptr_free);
EXPECT_NOT_NULL(conn);
Expand Down

0 comments on commit 08aa39b

Please sign in to comment.