mirror of
https://github.com/torlando-tech/pyxis.git
synced 2026-09-02 09:03:53 +00:00
fix(maps): cancel stale tile rendering safely
This commit is contained in:
@@ -85,7 +85,7 @@ void testEveryOpenedFailureCloses() {
|
||||
|
||||
void testStopMidReadCloses() {
|
||||
beginTest(); Stop stop; Stream stream; stream.stop = &stop; std::uint8_t output[8] = {}; std::size_t total = 0U;
|
||||
CHECK(MapTileStreamReader::readExact(stream, stop, TileKey{1U,0U,0U}, output, sizeof(output), 1U, total) == MapTileStreamResult::IO_ERROR);
|
||||
CHECK(MapTileStreamReader::readExact(stream, stop, TileKey{1U,0U,0U}, output, sizeof(output), 1U, total) == MapTileStreamResult::CANCELLED);
|
||||
CHECK(stream.read_calls == 1U && stream.end_calls == 1U);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user