From 5f6dcd36ed433dabc1a39dffe129fe09e1083eaa Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 5 Oct 2022 15:16:14 +0200 Subject: [PATCH] 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. --- test/bdd/api/search/params.feature | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.45.1