Use a unique server for the summarized dump creation test

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
This commit is contained in:
Martin Tzvetanov Grigorov 2025-06-06 14:52:05 +03:00
parent 63ccd19ab1
commit 10028515ac
No known key found for this signature in database
GPG Key ID: 3194FD8C1AE300EF
2 changed files with 3 additions and 2 deletions

View File

@ -399,7 +399,7 @@ impl<State> Server<State> {
pub async fn wait_task(&self, update_id: u64) -> Value {
// try several times to get status, or panic to not wait forever
let url = format!("/tasks/{}", update_id);
let max_attempts = 400; // 200 seconds total, 0.5s per attempt
let max_attempts = 100; // 50 seconds total, 0.5s per attempt
for i in 0..max_attempts {
let (response, status_code) = self.service.get(&url).await;

View File

@ -1038,7 +1038,8 @@ async fn test_summarized_task_deletion() {
#[actix_web::test]
async fn test_summarized_dump_creation() {
let server = Server::new_shared();
// Do not use a shared server because it takes too long to create a dump
let server = Server::new().await;
let (task, _status_code) = server.create_dump().await;
server.wait_task(task.uid()).await;
let (task, _) = server.get_task(task.uid()).await;