mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Use unique server + its own index for #stats() test
Using a shared server will make this test fragile Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
parent
8b0c4291ae
commit
930d5a09a8
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ async fn test_healthyness() {
|
|||
|
||||
#[actix_rt::test]
|
||||
async fn stats() {
|
||||
let server = Server::new_shared();
|
||||
let index = server.unique_index();
|
||||
let server = Server::new().await;
|
||||
let index = server.index("test");
|
||||
let (task, code) = index.create(Some("id")).await;
|
||||
|
||||
assert_eq!(code, 202);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue