Increase allowed timecheck interval
This commit is contained in:
parent
688e75b770
commit
833ef69056
@ -1,6 +1,6 @@
|
|||||||
Description: Relax timing constraints for some tests.
|
Description: Relax timing constraints for some tests.
|
||||||
With a statement_timeout of 100ms, increase the allowed _timecheck interval
|
With a statement_timeout of 100ms, increase the allowed _timecheck interval
|
||||||
from 200ms or 250ms to 500ms. This should increase chances of tests passing
|
from 200ms or 250ms to 750ms. This should increase chances of tests passing
|
||||||
even on busy or slow systems.
|
even on busy or slow systems.
|
||||||
Author: Markus Wanner <markus@bluegap.ch>
|
Author: Markus Wanner <markus@bluegap.ch>
|
||||||
Forwarded: not-needed
|
Forwarded: not-needed
|
||||||
@ -12,7 +12,7 @@ Forwarded: not-needed
|
|||||||
-- would run for many seconds if uninterruptible...
|
-- would run for many seconds if uninterruptible...
|
||||||
SELECT ST_Segmentize(ST_MakeLine(ST_Point(4,39), ST_Point(1,41)), 1e-100);
|
SELECT ST_Segmentize(ST_MakeLine(ST_Point(4,39), ST_Point(1,41)), 1e-100);
|
||||||
-SELECT _timecheck('segmentize', '250ms');
|
-SELECT _timecheck('segmentize', '250ms');
|
||||||
+SELECT _timecheck('segmentize', '500ms');
|
+SELECT _timecheck('segmentize', '750ms');
|
||||||
SET statement_timeout TO 0;
|
SET statement_timeout TO 0;
|
||||||
-- Not affected by old timeout
|
-- Not affected by old timeout
|
||||||
SELECT '1',ST_AsText(ST_Segmentize('LINESTRING(0 0,4 0)'::geometry, 2));
|
SELECT '1',ST_AsText(ST_Segmentize('LINESTRING(0 0,4 0)'::geometry, 2));
|
||||||
@ -23,7 +23,7 @@ Forwarded: not-needed
|
|||||||
-- it may take some more to interrupt st_buffer, see
|
-- it may take some more to interrupt st_buffer, see
|
||||||
-- https://travis-ci.org/postgis/postgis/builds/40211116#L2222-L2223
|
-- https://travis-ci.org/postgis/postgis/builds/40211116#L2222-L2223
|
||||||
-SELECT _timecheck('buffer', '200ms');
|
-SELECT _timecheck('buffer', '200ms');
|
||||||
+SELECT _timecheck('buffer', '500ms');
|
+SELECT _timecheck('buffer', '750ms');
|
||||||
|
|
||||||
-- Not affected by old timeout
|
-- Not affected by old timeout
|
||||||
SELECT '1', ST_NPoints(ST_Buffer('POINT(4 0)'::geometry, 2, 1));
|
SELECT '1', ST_NPoints(ST_Buffer('POINT(4 0)'::geometry, 2, 1));
|
||||||
@ -34,36 +34,36 @@ Forwarded: not-needed
|
|||||||
|
|
||||||
select ST_Contains(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
select ST_Contains(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||||
-SELECT _timecheck('contains', '200ms');
|
-SELECT _timecheck('contains', '200ms');
|
||||||
+SELECT _timecheck('contains', '500ms');
|
+SELECT _timecheck('contains', '750ms');
|
||||||
|
|
||||||
select ST_Covers(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
select ST_Covers(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||||
-SELECT _timecheck('covers', '200ms');
|
-SELECT _timecheck('covers', '200ms');
|
||||||
+SELECT _timecheck('covers', '500ms');
|
+SELECT _timecheck('covers', '750ms');
|
||||||
|
|
||||||
select ST_CoveredBy(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
select ST_CoveredBy(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||||
-SELECT _timecheck('coveredby', '200ms');
|
-SELECT _timecheck('coveredby', '200ms');
|
||||||
+SELECT _timecheck('coveredby', '500ms');
|
+SELECT _timecheck('coveredby', '750ms');
|
||||||
|
|
||||||
select ST_Crosses(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
select ST_Crosses(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||||
-SELECT _timecheck('crosses', '200ms');
|
-SELECT _timecheck('crosses', '200ms');
|
||||||
+SELECT _timecheck('crosses', '500ms');
|
+SELECT _timecheck('crosses', '750ms');
|
||||||
|
|
||||||
-- NOTE: we're reversing one of the operands to avoid the
|
-- NOTE: we're reversing one of the operands to avoid the
|
||||||
-- short-circuit described in #3226
|
-- short-circuit described in #3226
|
||||||
select ST_Equals(g,st_reverse(g)) from _inputs WHERE id = 1; -- 6+ seconds
|
select ST_Equals(g,st_reverse(g)) from _inputs WHERE id = 1; -- 6+ seconds
|
||||||
-SELECT _timecheck('equals', '200ms');
|
-SELECT _timecheck('equals', '200ms');
|
||||||
+SELECT _timecheck('equals', '500ms');
|
+SELECT _timecheck('equals', '750ms');
|
||||||
|
|
||||||
select ST_Intersects(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
select ST_Intersects(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||||
-SELECT _timecheck('intersects', '200ms');
|
-SELECT _timecheck('intersects', '200ms');
|
||||||
+SELECT _timecheck('intersects', '500ms');
|
+SELECT _timecheck('intersects', '750ms');
|
||||||
|
|
||||||
select ST_Overlaps(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
select ST_Overlaps(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||||
-SELECT _timecheck('overlaps', '200ms');
|
-SELECT _timecheck('overlaps', '200ms');
|
||||||
+SELECT _timecheck('overlaps', '500ms');
|
+SELECT _timecheck('overlaps', '750ms');
|
||||||
|
|
||||||
select ST_Relate(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
select ST_Relate(g,g) from _inputs WHERE id = 1; -- 6+ seconds
|
||||||
-SELECT _timecheck('relate', '200ms');
|
-SELECT _timecheck('relate', '200ms');
|
||||||
+SELECT _timecheck('relate', '500ms');
|
+SELECT _timecheck('relate', '750ms');
|
||||||
|
|
||||||
DROP FUNCTION _timecheck(text, interval);
|
DROP FUNCTION _timecheck(text, interval);
|
||||||
|
Loading…
Reference in New Issue
Block a user