Remove useless test functin

This commit is contained in:
Mubelotix
2025-08-07 11:35:45 +02:00
parent ea894e6a2c
commit 2d479332d3
3 changed files with 6 additions and 11 deletions

View File

@ -1292,7 +1292,7 @@ async fn test_summarized_batch_deletion() {
".stats.writeChannelCongestion" => "[writeChannelCongestion]",
".details.originalFilter" => "?uids=X"
},
@r###"
@r#"
{
"uid": "[uid]",
"progress": null,
@ -1317,7 +1317,7 @@ async fn test_summarized_batch_deletion() {
"finishedAt": "[date]",
"batchStrategy": "stopped after the last task of type `taskDeletion` because they cannot be batched with tasks of any other type."
}
"###);
"#);
}
#[actix_web::test]

View File

@ -375,11 +375,6 @@ impl<State> Index<'_, State> {
self.service.get(url).await
}
pub async fn delete_tasks(&self, query: impl AsRef<str>) -> (Value, StatusCode) {
let url = format!("/tasks?{}", query.as_ref());
self.service.delete(url).await
}
pub async fn filtered_tasks(
&self,
types: &[&str],

View File

@ -61,7 +61,7 @@ async fn delete_task() {
server.wait_task(task).await.succeeded();
// Delete tasks
let (task, code) = index.delete_tasks(format!("uids={task_uid}")).await;
let (task, code) = server.delete_tasks(&format!("uids={task_uid}")).await;
snapshot!(code, @"202 Accepted");
let value = server.wait_task(task).await.succeeded();
snapshot!(value, @r#"
@ -132,12 +132,12 @@ async fn delete_tasks_time_bounds_inner(name: &str) {
}
// Delete tasks with before_enqueued and after_enqueued
let (task, code) = index
.delete_tasks(dbg!(format!(
let (task, code) = server
.delete_tasks(&format!(
"before{name}={}&after{name}={}",
encode(&time2.format(&Rfc3339).unwrap()),
encode(&time1.format(&Rfc3339).unwrap()),
)))
))
.await;
snapshot!(code, @"202 Accepted");
let value = server.wait_task(task).await.succeeded();