Skip to content

Commit b4d122f

Browse files
Update image threshold
1 parent 2fe18ed commit b4d122f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/tile/tile_lod.test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ class TileLODTest {
6666
map.getStyle().addLayer(std::move(layer));
6767
}
6868

69-
void checkImage(std::string image, uint32_t expectedTileCount) {
70-
checkImages(std::vector<std::string>{image}, expectedTileCount);
69+
void checkImage(std::string image, uint32_t expectedTileCount, double imageThreshold = 0.0002) {
70+
checkImages(std::vector<std::string>{image}, expectedTileCount, imageThreshold);
7171
}
7272

73-
void checkImages(std::vector<std::string> images, uint32_t expectedTileCount) {
73+
void checkImages(std::vector<std::string> images, uint32_t expectedTileCount, double imageThreshold) {
7474
const auto result = frontend.render(map);
7575

7676
// check this after frontend.render()
@@ -80,7 +80,7 @@ class TileLODTest {
8080
return "test/fixtures/tile_lod/" + img;
8181
});
8282

83-
test::checkImages(images, result.image, 0.0002, 0.01);
83+
test::checkImages(images, result.image, imageThreshold, 0.01);
8484
}
8585
};
8686

@@ -126,7 +126,7 @@ TEST(TileLOD, pitchThreshold) {
126126
"pitchThreshold-line",
127127
"pitchThreshold-polyline",
128128
},
129-
22);
129+
22, 0.0015);
130130
}
131131

132132
TEST(TileLOD, scale) {

0 commit comments

Comments
 (0)