Skip to content

Commit a6b9b5d

Browse files
committed
Cleanup flex validgeom test
1 parent 4362106 commit a6b9b5d

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

tests/test-output-flex-validgeom.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55

66
static testing::db::import_t db;
77

8-
TEST_CASE("no invalid geometries")
8+
static char const *const conf_file = "test_output_flex_area.lua";
9+
static char const *const data_file = "test_output_pgsql_validgeom.osm";
10+
11+
TEST_CASE("no invalid geometries should end up in the database")
912
{
10-
REQUIRE_NOTHROW(
11-
db.run_file(testing::opt_t().slim().flex("test_output_flex.lua"),
12-
"test_output_pgsql_validgeom.osm"));
13+
options_t const options = testing::opt_t().flex(conf_file);
1314

14-
auto conn = db.db().connect();
15+
REQUIRE_NOTHROW(db.run_file(options, data_file));
1516

16-
conn.require_has_table("osm2pgsql_test_point");
17-
conn.require_has_table("osm2pgsql_test_line");
18-
conn.require_has_table("osm2pgsql_test_polygon");
19-
conn.require_has_table("osm2pgsql_test_route");
17+
auto conn = db.db().connect();
2018

2119
REQUIRE(12 == conn.get_count("osm2pgsql_test_polygon"));
2220
REQUIRE(0 ==

0 commit comments

Comments
 (0)