Skip to content

Commit

Permalink
fix test compilation to be possible on ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
t-horikawa committed May 15, 2024
1 parent a1b8958 commit 2b30c50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/tateyama/metrics/resource/metrics_bridge_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ TEST_F(metrics_bridge_test, show) {
for (int j = 0; j < alen; j++) {
auto&& element = array.elements(j);
auto&& attributes = element.attributes();
if (!attributes.contains("table_name") || !attributes.contains("index_name")) {
// if (!attributes.contains("table_name") || !attributes.contains("index_name")) { // N.G. on ubuntu 20.04
if ((attributes.find("table_name") == attributes.end()) || (attributes.find("index_name") == attributes.end())) {
FAIL();
}
auto&& table_name = attributes.at("table_name");
Expand Down

0 comments on commit 2b30c50

Please sign in to comment.