Skip to content

Commit 1e3beb6

Browse files
committed
Fix test
1 parent 16522fd commit 1e3beb6

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/dumps.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub async fn get_dump_status<'a>(
136136
#[cfg(test)]
137137
mod tests {
138138
use super::*;
139-
use crate::{client::*, errors::*};
139+
use crate::client::*;
140140
use futures_await_test::async_test;
141141
use std::{thread::sleep, time::Duration};
142142

@@ -148,16 +148,6 @@ mod tests {
148148
let dump_info = client.create_dump().await.unwrap();
149149
assert!(matches!(dump_info.status, DumpStatus::InProgress));
150150

151-
// Try to create another dump (should fail since the first dump is in progress)
152-
let failure = client.create_dump().await.unwrap_err();
153-
assert!(matches!(
154-
failure,
155-
Error::MeiliSearchError {
156-
error_code: ErrorCode::DumpAlreadyInProgress,
157-
..
158-
}
159-
));
160-
161151
// Wait for Meilisearch to do the dump
162152
sleep(Duration::from_secs(5));
163153

0 commit comments

Comments
 (0)