Skip to content

Commit d23d0f1

Browse files
committed
Cleanup test checking updates of tables without geometry
1 parent d690b4f commit d23d0f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test-output-flex-nogeom.cpp

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

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

8+
static char const *const conf_file = "test_output_flex_nogeom.lua";
9+
810
TEST_CASE("updating table without geometry should work")
911
{
10-
testing::opt_t options = testing::opt_t()
11-
.slim()
12-
.flex("test_output_flex_nogeom.lua")
13-
.srs(PROJ_LATLONG);
12+
options_t options =
13+
testing::opt_t().slim().flex(conf_file).srs(PROJ_LATLONG);
1414

1515
REQUIRE_NOTHROW(db.run_import(options,
1616
"n10 v1 dV Tamenity=restaurant x10.0 y10.0\n"
@@ -20,10 +20,10 @@ TEST_CASE("updating table without geometry should work")
2020

2121
CHECK(2 == conn.get_count("osm2pgsql_test_pois"));
2222

23+
options.append = true;
24+
2325
REQUIRE_NOTHROW(db.run_import(
24-
options.append(),
25-
"n10 v2 dV Tamenity=restaurant,name=Schwanen x10.0 y10.0\n"));
26+
options, "n10 v2 dV Tamenity=restaurant,name=Schwanen x10.0 y10.0\n"));
2627

2728
CHECK(2 == conn.get_count("osm2pgsql_test_pois"));
2829
}
29-

0 commit comments

Comments
 (0)