Skip to content

Commit d37e9bb

Browse files
authored
Fixing rest api test (#3683)
1 parent 3d45a87 commit d37e9bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

quickwit/rest-api-tests/run_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def run_request_step(method, step):
8686
if ndjson is not None:
8787
kvargs["data"] = "\n".join([json.dumps(doc) for doc in ndjson])
8888
kvargs.setdefault("headers")["Content-Type"] = "application/json"
89-
expected_status_code = step.get("status_code", None)
89+
expected_status_code = step.get("status_code", 200)
9090
num_retries = step.get("num_retries", 0)
9191
run_req = lambda : method_req(url, **kvargs)
9292
r = run_request_with_retry(run_req, expected_status_code, num_retries)

quickwit/rest-api-tests/scenarii/default_search_fields/_setup.quickwit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ ndjson:
3535
- {"id": 1, "some_dynamic_field": "hello"}
3636
- {"id": 2, "inner_json": {"somefieldinjson": "allo"}}
3737
- {"id": 3, "regular_field": "bonjour"}
38+
num_retries: 10

0 commit comments

Comments
 (0)