[core] remove trailing whitespace, add trailing newlines, add space after //
This commit is contained in:
@@ -9,7 +9,7 @@ using namespace mbgl;
|
||||
using namespace mbgl::http;
|
||||
|
||||
TEST(HttpRetry, OtherError) {
|
||||
//Non-retryable
|
||||
// Non-retryable
|
||||
ASSERT_EQ(Duration::max(), errorRetryTimeout(Response::Error::Reason::Other, 1));
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ TEST(HttpRetry, ServerError) {
|
||||
// 1-3 failures -> 1 sec
|
||||
ASSERT_EQ(Seconds(1), errorRetryTimeout(Response::Error::Reason::Server, 1));
|
||||
ASSERT_EQ(Seconds(1), errorRetryTimeout(Response::Error::Reason::Server, 3));
|
||||
|
||||
|
||||
// After 3, exponential backoff
|
||||
ASSERT_EQ(Seconds(2), errorRetryTimeout(Response::Error::Reason::Server, 4));
|
||||
ASSERT_EQ(Seconds(1u << 31), errorRetryTimeout(Response::Error::Reason::Server, 50));
|
||||
@@ -32,8 +32,8 @@ TEST(HttpRetry, ConnectionError) {
|
||||
TEST(HttpRetry, RateLimit) {
|
||||
// Pre-set value from header
|
||||
ASSERT_EQ(Seconds(1), errorRetryTimeout(Response::Error::Reason::Server, 1, { util::now() + Seconds(1) }));
|
||||
|
||||
//Default
|
||||
|
||||
// Default
|
||||
ASSERT_EQ(Seconds(5), errorRetryTimeout(Response::Error::Reason::RateLimit, 1, {}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user