From: Sarah Hoffmann Date: Wed, 5 Oct 2022 13:16:14 +0000 (+0200) Subject: fix flaky API test X-Git-Tag: v4.2.0~24^2 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/5f6dcd36ed433dabc1a39dffe129fe09e1083eaa fix flaky API test The search 'landstr' produces many duplicates so that with some bad luck 4 or less results may appear. Disable deduplication to make it more predictable. --- diff --git a/test/bdd/api/search/params.feature b/test/bdd/api/search/params.feature index af83bd33..053dbbcd 100644 --- a/test/bdd/api/search/params.feature +++ b/test/bdd/api/search/params.feature @@ -172,10 +172,12 @@ Feature: Search queries Scenario: Limit number of search results When sending json search query "landstr" + | dedupe | + | 0 | Then more than 4 results are returned When sending json search query "landstr" - | limit | - | 4 | + | limit | dedupe | + | 4 | 0 | Then exactly 4 results are returned Scenario: Limit parameter must be a number