@@ -1311,12 +1311,12 @@ TEST_CASE(localhost_integ_h2_sm_acquire_stream_stress) {
13111311 (void )ctx ;
13121312 struct aws_byte_cursor uri_cursor = aws_byte_cursor_from_c_str ("https://localhost:8443/echo" );
13131313 struct aws_http_connection_monitoring_options monitor_opt = {
1314- .allowable_throughput_failure_interval_seconds = 1 ,
1314+ .allowable_throughput_failure_interval_seconds = 2 ,
13151315 .minimum_throughput_bytes_per_second = 1000 ,
13161316 };
13171317 enum aws_log_level log_level = AWS_LOG_LEVEL_DEBUG ;
13181318 struct sm_tester_options options = {
1319- .max_connections = 100 ,
1319+ .max_connections = 50 ,
13201320 .max_concurrent_streams_per_connection = 100 ,
13211321 .connection_ping_period_ms = 100 * AWS_TIMESTAMP_MILLIS ,
13221322 .alloc = allocator ,
@@ -1325,11 +1325,11 @@ TEST_CASE(localhost_integ_h2_sm_acquire_stream_stress) {
13251325 .log_level = & log_level ,
13261326 };
13271327 ASSERT_SUCCESS (s_tester_init (& options ));
1328- int num_to_acquire = 500 * 100 ;
1329- ASSERT_SUCCESS (s_sm_stream_acquiring (num_to_acquire ));
1328+ size_t num_to_acquire = 500 * 100 ;
1329+ ASSERT_SUCCESS (s_sm_stream_acquiring (( int ) num_to_acquire ));
13301330 ASSERT_SUCCESS (s_wait_on_streams_completed_count (num_to_acquire ));
1331- ASSERT_TRUE (( int ) s_tester .acquiring_stream_errors == 0 );
1332- ASSERT_TRUE (( int ) s_tester .stream_200_count == num_to_acquire );
1331+ ASSERT_UINT_EQUALS ( s_tester .acquiring_stream_errors , 0 );
1332+ ASSERT_UINT_EQUALS ( s_tester .stream_200_count , num_to_acquire );
13331333
13341334 return s_tester_clean_up ();
13351335}
@@ -1410,18 +1410,10 @@ TEST_CASE(localhost_integ_h2_sm_acquire_stream_stress_with_body) {
14101410 s_tester .length_sent = 2000 ;
14111411 int num_to_acquire = 500 * 100 ;
14121412
1413- #ifdef AWS_OS_LINUX
1414- /* Using Python hyper h2 server frame work, met a weird upload performance issue on Linux. Our client against nginx
1415- * platform has not met the same issue. We assume it's because the server framework implementation. Use lower
1416- * number of linux
1417- */
1418- num_to_acquire = 500 ;
1419- #endif
1420-
14211413 ASSERT_SUCCESS (s_sm_stream_acquiring_with_body (num_to_acquire ));
14221414 ASSERT_SUCCESS (s_wait_on_streams_completed_count (num_to_acquire ));
1423- ASSERT_TRUE (( int ) s_tester .acquiring_stream_errors == 0 );
1424- ASSERT_TRUE (( int ) s_tester .stream_200_count == num_to_acquire );
1415+ ASSERT_UINT_EQUALS ( s_tester .acquiring_stream_errors , 0 );
1416+ ASSERT_UINT_EQUALS ( s_tester .stream_200_count , num_to_acquire );
14251417
14261418 return s_tester_clean_up ();
14271419}
0 commit comments