gzip the tasks

This commit is contained in:
Tamo 2023-11-29 13:09:04 +01:00 committed by Clément Renault
parent 547379abb0
commit be72326c0a
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
4 changed files with 12 additions and 4 deletions

View file

@ -11,6 +11,7 @@ use actix_web::{post, App, HttpResponse, HttpServer};
use meili_snap::{json_string, snapshot};
use meilisearch::Opt;
use tokio::sync::mpsc;
use url::Url;
use crate::common::{default_settings, Server};
use crate::json;
@ -66,7 +67,7 @@ async fn test_basic_webhook() {
let db_path = tempfile::tempdir().unwrap();
let server = Server::new_with_options(Opt {
task_webhook_url: Some(url),
task_webhook_url: Some(Url::parse(&url).unwrap()),
..default_settings(db_path.path())
})
.await