Skip to content

Commit

Permalink
Add sampleHeightMostDetailed test against a broken tileset.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Sep 27, 2024
1 parent 87a4e68 commit ad18abf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cesium3DTilesSelection/test/TestTilesetHeightQueries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,17 @@ TEST_CASE("Tileset height queries") {
results.warnings[0].find("EXT_mesh_gpu_instancing") !=
std::string::npos);
}

SECTION("broken tileset") {
Tileset tileset(externals, "http://localhost/notgonnawork");

Future<SampleHeightResult> future = tileset.sampleHeightMostDetailed(
{Cartographic::fromDegrees(-75.612559, 40.042183, 0.0)});

while (!future.isReady()) {
tileset.updateView({});
}

REQUIRE_THROWS(future.waitInMainThread());
}
}

0 comments on commit ad18abf

Please sign in to comment.