diff options
-rw-r--r-- | test/util/http_timeout.test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/util/http_timeout.test.cpp b/test/util/http_timeout.test.cpp index e9899f9560..c9373d955d 100644 --- a/test/util/http_timeout.test.cpp +++ b/test/util/http_timeout.test.cpp @@ -11,6 +11,11 @@ TEST(HttpRetry, OtherError) { ASSERT_EQ(Duration::max(), errorRetryTimeout(Response::Error::Reason::Other, 1)); } +TEST(HttpRetry, NotFound) { + // Non-retryable + ASSERT_EQ(Duration::max(), errorRetryTimeout(Response::Error::Reason::NotFound, 1)); +} + TEST(HttpRetry, ServerError) { // 1-3 failures -> 1 sec ASSERT_EQ(Seconds(1), errorRetryTimeout(Response::Error::Reason::Server, 1)); |