Skip to content

Commit 05cf7fb

Browse files
committed
Fixing pgtap test for johnson
1 parent a2a339a commit 05cf7fb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pgtap/allpairs/johnson/no_crash_test.pg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ LANGUAGE plpgsql VOLATILE;
3333

3434

3535
SELECT * FROM test_function();
36-
SELECT throw_on_empty_edges_sql('pgr_floydWarshall', '');
36+
SELECT throw_on_empty_edges_sql('pgr_johnson', '');
3737

3838
SELECT finish();
3939
ROLLBACK;

src/cpp_common/utilities.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@ get_name(Which which, bool is_only_cost, bool is_near, bool is_matrix) {
7474
break;
7575
}
7676
case BDDIJKSTRA :
77-
{
78-
base = "pgr_bdDijkstra";
79-
suffix = std::string(is_near? "Near" : "") + (is_only_cost? "Cost" : "") + (is_matrix? "Matrix" : "");
80-
break;
81-
}
77+
base = "pgr_bdDijkstra";
78+
suffix = std::string(is_near? "Near" : "") + (is_only_cost? "Cost" : "") + (is_matrix? "Matrix" : "");
79+
break;
8280
case OLD_WITHPOINTS:
8381
case WITHPOINTS:
8482
{

0 commit comments

Comments
 (0)