diff --git a/tests/unit/s2n_alerts_test.c b/tests/unit/s2n_alerts_test.c index 593b4c6940c..2d4d87b583d 100644 --- a/tests/unit/s2n_alerts_test.c +++ b/tests/unit/s2n_alerts_test.c @@ -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; diff --git a/tests/unit/s2n_shutdown_test.c b/tests/unit/s2n_shutdown_test.c index 549f758abfe..7a01af33b72 100644 --- a/tests/unit/s2n_shutdown_test.c +++ b/tests/unit/s2n_shutdown_test.c @@ -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);