Skip to content

Commit

Permalink
Assert parsing state is completed at end of each tile lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilsnd committed Sep 10, 2024
1 parent 986ee92 commit bc8a5f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/map/map.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,7 @@ TEST(Map, ObserveTileLifecycle) {
TileOperation::LoadFromCache,
TileOperation::StartParse));
stage = TileOperation::Cancelled;
parsing = false;
break;
}
case TileOperation::EndParse: {
Expand Down Expand Up @@ -1857,5 +1858,6 @@ TEST(Map, ObserveTileLifecycle) {
}

EXPECT_THAT(stage, testing::AnyOf(TileOperation::EndParse, TileOperation::Cancelled));
EXPECT_FALSE(parsing);
}
}

0 comments on commit bc8a5f0

Please sign in to comment.