fix a flaky test

This commit is contained in:
Tamo 2023-01-11 14:54:29 +01:00
parent d0a85057a3
commit 7a30d98264
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -240,6 +240,8 @@ async fn search_bad_filter() {
// Also, to trigger the error message we need to effectively create the index or else it'll throw an // Also, to trigger the error message we need to effectively create the index or else it'll throw an
// index does not exists error. // index does not exists error.
let (_, code) = index.create(None).await; let (_, code) = index.create(None).await;
server.wait_task(0).await;
snapshot!(code, @"202 Accepted"); snapshot!(code, @"202 Accepted");
let (response, code) = index.search_post(json!({ "filter": true })).await; let (response, code) = index.search_post(json!({ "filter": true })).await;