follow-up fixes after 16416
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user