Skip to content

Commit 9c61700

Browse files
authored
HTTP/2 integration tests - Part 1 (#365)
- Added hpack echo test. - Changed Stream manager stress tests to accept 1% of failure in case of internet flaky.
1 parent 54e89e8 commit 9c61700

5 files changed

Lines changed: 470 additions & 40 deletions

File tree

source/hpack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include <aws/common/logging.h>
1414
#include <aws/common/string.h>
1515

16+
#include <inttypes.h>
17+
1618
/* #TODO split hpack encoder/decoder into different types */
1719

1820
/* #TODO test empty strings */

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ add_test_case(hpack_decode_indexed_from_dynamic_table)
245245
add_test_case(hpack_dynamic_table_empty_value)
246246
add_test_case(hpack_dynamic_table_with_empty_header)
247247
add_test_case(hpack_dynamic_table_size_update_from_setting)
248+
add_net_test_case(hpack_stress)
248249

249250
add_test_case(h2_header_empty_payload)
250251
add_one_byte_at_a_time_test_set(h2_header_ex_2_1)

tests/test_connection_monitor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <aws/testing/io_testing_channel.h>
1818

1919
#ifdef _MSC_VER
20-
# pragma warning(disable : 4996) /* Disable warnings about sptrintf() being insecure */
20+
# pragma warning(disable : 4996) /* Disable warnings about sprintf() being insecure */
2121
#endif
2222

2323
static int s_test_http_connection_monitor_options_is_valid(struct aws_allocator *allocator, void *ctx) {

0 commit comments

Comments
 (0)