Skip to content

Commit a95b385

Browse files
committed
Fix: Update test version requirement to 4.1.0 for issue #2966
1 parent a1bbda8 commit a95b385

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pgtap/withPoints/withPoints/edge_cases/issue_2966.pg

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ BEGIN;
2626

2727
SET extra_float_digits=-3;
2828

29-
SELECT CASE WHEN min_version('3.8.0') THEN plan(4) ELSE plan(1) END;
29+
SELECT CASE WHEN min_version('4.1.0') THEN plan(4) ELSE plan(1) END;
3030

3131
CREATE OR REPLACE FUNCTION issue_2966_tests()
3232
RETURNS SETOF TEXT AS
3333
$BODY$
3434
BEGIN
3535

36-
IF NOT min_version('3.8.0') THEN
37-
RETURN QUERY SELECT skip(1, 'pgr_withPoints: Issue 2966 test requires 3.8.0+');
36+
IF NOT min_version('4.1.0') THEN
37+
RETURN QUERY SELECT skip(1, 'pgr_withPoints: Issue 2966 test requires 4.1.0+');
3838
RETURN;
3939
END IF;
4040

@@ -56,8 +56,7 @@ BEGIN
5656
'Issue 2966: fraction=0.99 should route correctly (baseline test)'
5757
);
5858

59-
-- Test 2: fraction = 1 should ALSO work correctly
60-
-- Regression test: previously returned 105 instead of 17
59+
-- Test 2: fraction = 1 should ALSO work correctly (regression for issue 2966, which previously returned 105 instead of 17)
6160
RETURN QUERY SELECT set_eq(
6261
$$SELECT agg_cost::TEXT FROM pgr_withPoints(
6362
'SELECT * FROM test_edges',

0 commit comments

Comments
 (0)