Skip to content

Commit 9784927

Browse files
authored
Fix flaky test in 95_search_after_shard_doc.yml (#19746)
Signed-off-by: Binlong Gao <gbinlong@amazon.com>
1 parent 2e6d466 commit 9784927

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search/95_search_after_shard_doc.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -145,32 +145,32 @@ setup:
145145
- set: { hits.hits.9.sort.0: last_value_page2 }
146146

147147
# Check that the sort values increase from one hit to the next without ever decreasing.
148-
- set: { hits.hits.0.sort.0: prev }
149-
- gt: { hits.hits.1.sort.0: $prev }
148+
- set: { hits.hits.9.sort.0: next }
149+
- lt: { hits.hits.8.sort.0: $next }
150150

151-
- set: { hits.hits.1.sort.0: prev }
152-
- gt: { hits.hits.2.sort.0: $prev }
151+
- set: { hits.hits.8.sort.0: next }
152+
- lt: { hits.hits.7.sort.0: $next }
153153

154-
- set: { hits.hits.2.sort.0: prev }
155-
- gt: { hits.hits.3.sort.0: $prev }
154+
- set: { hits.hits.7.sort.0: next }
155+
- lt: { hits.hits.6.sort.0: $next }
156156

157-
- set: { hits.hits.3.sort.0: prev }
158-
- gt: { hits.hits.4.sort.0: $prev }
157+
- set: { hits.hits.6.sort.0: next }
158+
- lt: { hits.hits.5.sort.0: $next }
159159

160-
- set: { hits.hits.4.sort.0: prev }
161-
- gt: { hits.hits.5.sort.0: $prev }
160+
- set: { hits.hits.5.sort.0: next }
161+
- lt: { hits.hits.4.sort.0: $next }
162162

163-
- set: { hits.hits.5.sort.0: prev }
164-
- gt: { hits.hits.6.sort.0: $prev }
163+
- set: { hits.hits.4.sort.0: next }
164+
- lt: { hits.hits.3.sort.0: $next }
165165

166-
- set: { hits.hits.6.sort.0: prev }
167-
- gt: { hits.hits.7.sort.0: $prev }
166+
- set: { hits.hits.3.sort.0: next }
167+
- lt: { hits.hits.2.sort.0: $next }
168168

169-
- set: { hits.hits.7.sort.0: prev }
170-
- gt: { hits.hits.8.sort.0: $prev }
169+
- set: { hits.hits.2.sort.0: next }
170+
- lt: { hits.hits.1.sort.0: $next }
171171

172-
- set: { hits.hits.8.sort.0: prev }
173-
- gt: { hits.hits.9.sort.0: $prev }
172+
- set: { hits.hits.1.sort.0: next }
173+
- lt: { hits.hits.0.sort.0: $next }
174174

175175
# Page 3: drain the rest (22 docs total => 10 + 10 + 2)
176176
- do:

0 commit comments

Comments
 (0)