@@ -184,8 +184,7 @@ TEMPLATE_TEST_CASE("middle import", "", options_slim_default,
184184 options_ram_optimized, options_ram_flatnode)
185185{
186186 options_t const options = TestType::options (db);
187- testing::cleanup::file_t flatnode_cleaner{
188- options.flat_node_file .get_value_or (" " )};
187+ testing::cleanup::file_t flatnode_cleaner{options.flat_node_file };
189188
190189 auto conn = db.connect ();
191190 auto const num_tables =
@@ -373,8 +372,7 @@ TEMPLATE_TEST_CASE("middle: add, delete and update node", "",
373372{
374373 options_t options = TestType::options (db);
375374
376- testing::cleanup::file_t flatnode_cleaner{
377- options.flat_node_file .get_value_or (" " )};
375+ testing::cleanup::file_t flatnode_cleaner{options.flat_node_file };
378376
379377 // Prepare a buffer with some nodes which we will add and change.
380378 test_buffer_t buffer;
@@ -573,8 +571,7 @@ TEMPLATE_TEST_CASE("middle: add, delete and update way", "",
573571{
574572 options_t options = TestType::options (db);
575573
576- testing::cleanup::file_t flatnode_cleaner{
577- options.flat_node_file .get_value_or (" " )};
574+ testing::cleanup::file_t flatnode_cleaner{options.flat_node_file };
578575
579576 // Create some ways we'll use for the tests.
580577 test_buffer_t buffer;
@@ -730,8 +727,7 @@ TEMPLATE_TEST_CASE("middle: add way with attributes", "", options_slim_default,
730727 SECTION (" With attributes" ) { options.extra_attributes = true ; }
731728 SECTION (" No attributes" ) { options.extra_attributes = false ; }
732729
733- testing::cleanup::file_t flatnode_cleaner{
734- options.flat_node_file .get_value_or (" " )};
730+ testing::cleanup::file_t flatnode_cleaner{options.flat_node_file };
735731
736732 // Create some ways we'll use for the tests.
737733 test_buffer_t buffer;
@@ -821,8 +817,7 @@ TEMPLATE_TEST_CASE("middle: add, delete and update relation", "",
821817{
822818 options_t options = TestType::options (db);
823819
824- testing::cleanup::file_t flatnode_cleaner{
825- options.flat_node_file .get_value_or (" " )};
820+ testing::cleanup::file_t flatnode_cleaner{options.flat_node_file };
826821
827822 // Create some relations we'll use for the tests.
828823 test_buffer_t buffer;
@@ -983,8 +978,7 @@ TEMPLATE_TEST_CASE("middle: add relation with attributes", "",
983978 SECTION (" With attributes" ) { options.extra_attributes = true ; }
984979 SECTION (" No attributes" ) { options.extra_attributes = false ; }
985980
986- testing::cleanup::file_t flatnode_cleaner{
987- options.flat_node_file .get_value_or (" " )};
981+ testing::cleanup::file_t flatnode_cleaner{options.flat_node_file };
988982
989983 // Create some relations we'll use for the tests.
990984 test_buffer_t buffer;
@@ -1046,8 +1040,7 @@ TEMPLATE_TEST_CASE("middle: change nodes in way", "", options_slim_default,
10461040{
10471041 options_t options = TestType::options (db);
10481042
1049- testing::cleanup::file_t flatnode_cleaner{
1050- options.flat_node_file .get_value_or (" " )};
1043+ testing::cleanup::file_t flatnode_cleaner{options.flat_node_file };
10511044
10521045 // create some nodes and ways we'll use for the tests
10531046 test_buffer_t buffer;
@@ -1187,8 +1180,7 @@ TEMPLATE_TEST_CASE("middle: change nodes in relation", "", options_slim_default,
11871180{
11881181 options_t options = TestType::options (db);
11891182
1190- testing::cleanup::file_t flatnode_cleaner{
1191- options.flat_node_file .get_value_or (" " )};
1183+ testing::cleanup::file_t flatnode_cleaner{options.flat_node_file };
11921184
11931185 // create some nodes, ways, and relations we'll use for the tests
11941186 test_buffer_t buffer;
0 commit comments