Skip to content

Commit

Permalink
gate test
Browse files Browse the repository at this point in the history
  • Loading branch information
toidiu committed Jul 9, 2024
1 parent 7910c0d commit 94ca557
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/s2n_record_read_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ int main(int argc, char *argv[])
EXPECT_OK(s2n_connections_set_io_stuffer_pair(client, server, &stuffer_pair));

EXPECT_SUCCESS(s2n_negotiate_test_server_and_client(server, client));
EXPECT_EQUAL(server->actual_protocol_version, security_policy_test_cases[i].expected_protocol_version);
/* If the underlying libcrypto doesn't support TLS 1.3, TLS 1.2 will be negotiated. */
if (s2n_is_tls13_fully_supported()) {
EXPECT_EQUAL(server->actual_protocol_version, security_policy_test_cases[i].expected_protocol_version);
}

/* Send some test data to the server. */
uint8_t test_data[] = "hello world";
Expand Down

0 comments on commit 94ca557

Please sign in to comment.