Skip to content

Commit 76e08b8

Browse files
committed
rename client to lpclient for windows error
1 parent 2e441dd commit 76e08b8

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

tests/aws-cpp-sdk-core-tests/aws/client/AWSClientTest.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -437,16 +437,16 @@ TEST_F(AWSClientTestSuite, LongPollingQuotaExhausted)
437437
ClientConfiguration config;
438438
auto quota = Aws::MakeShared<DefaultRetryQuotaContainer>(ALLOCATION_TAG);
439439
config.retryStrategy = Aws::MakeShared<CountedStandardRetryStrategy>(ALLOCATION_TAG, quota);
440-
MockAWSClientWithStandardRetryStrategy client(config);
441-
ASSERT_TRUE(client.GetRetryQuotaContainer()->AcquireRetryQuota(498));
440+
MockAWSClientWithStandardRetryStrategy lpClient(config);
441+
ASSERT_TRUE(lpClient.GetRetryQuotaContainer()->AcquireRetryQuota(498));
442442

443443
HeaderValueCollection responseHeaders;
444444
QueueMockResponse(AWSError<CoreErrors>(CoreErrors::NETWORK_CONNECTION, true), responseHeaders);
445445

446446
auto request = MakeLongPollingRequest();
447-
auto outcome = client.MakeRequest(request);
447+
auto outcome = lpClient.MakeRequest(request);
448448
ASSERT_FALSE(outcome.IsSuccess());
449-
ASSERT_EQ(0, client.GetRequestAttemptedRetries());
449+
ASSERT_EQ(0, lpClient.GetRequestAttemptedRetries());
450450
}
451451

452452
// SEP Test Case 14: long-polling, retryable error, stops at max attempts.
@@ -456,7 +456,7 @@ TEST_F(AWSClientTestSuite, LongPollingMaxAttemptsExceeded)
456456
ClientConfiguration config;
457457
auto quota = Aws::MakeShared<DefaultRetryQuotaContainer>(ALLOCATION_TAG);
458458
config.retryStrategy = Aws::MakeShared<CountedStandardRetryStrategy>(ALLOCATION_TAG, quota);
459-
MockAWSClientWithStandardRetryStrategy client(config);
459+
MockAWSClientWithStandardRetryStrategy lpClient(config);
460460

461461
HeaderValueCollection responseHeaders;
462462
AWSError<CoreErrors> transientError(CoreErrors::NETWORK_CONNECTION, true);
@@ -465,9 +465,9 @@ TEST_F(AWSClientTestSuite, LongPollingMaxAttemptsExceeded)
465465
QueueMockResponse(transientError, responseHeaders);
466466

467467
auto request = MakeLongPollingRequest();
468-
auto outcome = client.MakeRequest(request);
468+
auto outcome = lpClient.MakeRequest(request);
469469
ASSERT_FALSE(outcome.IsSuccess());
470-
ASSERT_EQ(2, client.GetRequestAttemptedRetries());
470+
ASSERT_EQ(2, lpClient.GetRequestAttemptedRetries());
471471
}
472472

473473
// SEP Test Case 15: long-polling, retryable error then success.
@@ -477,16 +477,16 @@ TEST_F(AWSClientTestSuite, LongPollingRetriesThenSucceeds)
477477
ClientConfiguration config;
478478
auto quota = Aws::MakeShared<DefaultRetryQuotaContainer>(ALLOCATION_TAG);
479479
config.retryStrategy = Aws::MakeShared<CountedStandardRetryStrategy>(ALLOCATION_TAG, quota);
480-
MockAWSClientWithStandardRetryStrategy client(config);
480+
MockAWSClientWithStandardRetryStrategy lpClient(config);
481481

482482
HeaderValueCollection responseHeaders;
483483
QueueMockResponse(AWSError<CoreErrors>(CoreErrors::NETWORK_CONNECTION, true), responseHeaders);
484484
QueueMockResponse(HttpResponseCode::OK, responseHeaders);
485485

486486
auto request = MakeLongPollingRequest();
487-
auto outcome = client.MakeRequest(request);
487+
auto outcome = lpClient.MakeRequest(request);
488488
AWS_ASSERT_SUCCESS(outcome);
489-
ASSERT_EQ(1, client.GetRequestAttemptedRetries());
489+
ASSERT_EQ(1, lpClient.GetRequestAttemptedRetries());
490490
}
491491

492492
// SEP Test Case 16: long-polling, non-retryable error, fails without retrying.
@@ -496,15 +496,15 @@ TEST_F(AWSClientTestSuite, LongPollingNonRetryableError)
496496
ClientConfiguration config;
497497
auto quota = Aws::MakeShared<DefaultRetryQuotaContainer>(ALLOCATION_TAG);
498498
config.retryStrategy = Aws::MakeShared<CountedStandardRetryStrategy>(ALLOCATION_TAG, quota);
499-
MockAWSClientWithStandardRetryStrategy client(config);
499+
MockAWSClientWithStandardRetryStrategy lpClient(config);
500500

501501
HeaderValueCollection responseHeaders;
502502
QueueMockResponse(HttpResponseCode::BAD_REQUEST, responseHeaders);
503503

504504
auto request = MakeLongPollingRequest();
505-
auto outcome = client.MakeRequest(request);
505+
auto outcome = lpClient.MakeRequest(request);
506506
ASSERT_FALSE(outcome.IsSuccess());
507-
ASSERT_EQ(0, client.GetRequestAttemptedRetries());
507+
ASSERT_EQ(0, lpClient.GetRequestAttemptedRetries());
508508
}
509509

510510
TEST_F(AWSClientTestSuite, TestRecursionDetection)

0 commit comments

Comments
 (0)