File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66#include <aws/http/http.h>
77#include <aws/testing/aws_test_harness.h>
88
9- static int s_test_http_error_code_is_transient (struct aws_allocator * allocator , void * ctx ) {
9+ static int s_test_http_error_code_is_retryable (struct aws_allocator * allocator , void * ctx ) {
1010 (void )allocator ;
1111 (void )ctx ;
1212
1313 int error_code = 0 ;
14- ASSERT_FALSE (aws_http_error_code_is_transient (error_code ));
14+ ASSERT_FALSE (aws_http_error_code_is_retryable (error_code ));
1515
1616 {
1717 error_code = AWS_ERROR_HTTP_CONNECTION_CLOSED ;
18- ASSERT_TRUE (aws_http_error_code_is_transient (error_code ));
18+ ASSERT_TRUE (aws_http_error_code_is_retryable (error_code ));
1919 }
2020 {
2121 error_code = AWS_ERROR_HTTP_SERVER_CLOSED ;
22- ASSERT_TRUE (aws_http_error_code_is_transient (error_code ));
22+ ASSERT_TRUE (aws_http_error_code_is_retryable (error_code ));
2323 }
2424
2525 error_code = AWS_ERROR_SUCCESS ;
26- ASSERT_FALSE (aws_http_error_code_is_transient (error_code ));
26+ ASSERT_FALSE (aws_http_error_code_is_retryable (error_code ));
2727
2828 return AWS_OP_SUCCESS ;
2929}
3030
31- AWS_TEST_CASE (test_http_error_code_is_transient , s_test_http_error_code_is_transient );
31+ AWS_TEST_CASE (test_http_error_code_is_retryable , s_test_http_error_code_is_retryable );
You can’t perform that action at this time.
0 commit comments