follow-up fixes after 16416

This commit is contained in:
Mikhail Pozdnyakov
2020-04-22 13:28:47 +03:00
parent c75342e1d2
commit 64c5b46d9e
2 changed files with 3 additions and 3 deletions

View File

@@ -82,8 +82,9 @@ public:
optional<uint8_t> getPrefetchZoomDelta() const noexcept;
// If the given source supports loading tiles from a server,
// sets the minimum tile update interval, which is used to
// throttle the tile update network requests.
// sets the minimum tile update interval.
// Update network requests that are more frequent than the
// minimum tile update interval are suppressed.
//
// Default value is `Duration::zero()`.
void setMinimumTileUpdateInterval(Duration) noexcept;

View File

@@ -229,7 +229,6 @@ TEST(OnlineFileSource, TEST_REQUIRES_SERVER(RespectMinimumUpdateInterval)) {
std::unique_ptr<AsyncRequest> req = fs->request(resource, [&](Response) {
auto wait = util::now() - start;
EXPECT_GE(wait, resource.minimumUpdateInterval);
EXPECT_LT(wait, resource.minimumUpdateInterval + Milliseconds(10));
loop.stop();
});