Skip to content

Commit 6681fce

Browse files
author
Krish
committed
update test
1 parent 8c083d8 commit 6681fce

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/test_http.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@
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);

0 commit comments

Comments
 (0)