From 16712bd1c8224d9eef243ea7572b1f4f935e82bd Mon Sep 17 00:00:00 2001 From: wendrul Date: Thu, 12 Dec 2024 18:41:35 +0100 Subject: [PATCH] Disable csharp test --- backend/tests/worker.rs | 82 ++++++++++++++++++++--------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/backend/tests/worker.rs b/backend/tests/worker.rs index 1ec3587f0f..712c8c2762 100644 --- a/backend/tests/worker.rs +++ b/backend/tests/worker.rs @@ -1798,47 +1798,47 @@ fn main(world: String) -> Result { assert_eq!(result, serde_json::json!("Hello Hyrule!")); } -#[sqlx::test(fixtures("base"))] -async fn test_csharp_job(db: Pool) { - initialize_tracing().await; - let server = ApiServer::start(db.clone()).await; - let port = server.addr.port(); - - let content = r#" -using System; - -class Script -{ - public static string Main(string world, int b = 2) - { - Console.WriteLine($"Hello {world} - {b}. This is a log line"); - return $"Hello {world} - {b}"; - } -} - "# - .to_owned(); - - let result = RunJob::from(JobPayload::Code(RawCode { - hash: None, - content, - path: None, - lock: None, - language: ScriptLang::CSharp, - custom_concurrency_key: None, - concurrent_limit: None, - concurrency_time_window_s: None, - cache_ttl: None, - dedicated_worker: None, - })) - .arg("world", json!("Arakis")) - .arg("b", json!(3)) - .run_until_complete(&db, port) - .await - .json_result() - .unwrap(); - - assert_eq!(result, serde_json::json!("Hello Arakis - 3")); -} +// #[sqlx::test(fixtures("base"))] +// async fn test_csharp_job(db: Pool) { +// initialize_tracing().await; +// let server = ApiServer::start(db.clone()).await; +// let port = server.addr.port(); +// +// let content = r#" +// using System; +// +// class Script +// { +// public static string Main(string world, int b = 2) +// { +// Console.WriteLine($"Hello {world} - {b}. This is a log line"); +// return $"Hello {world} - {b}"; +// } +// } +// "# +// .to_owned(); +// +// let result = RunJob::from(JobPayload::Code(RawCode { +// hash: None, +// content, +// path: None, +// lock: None, +// language: ScriptLang::CSharp, +// custom_concurrency_key: None, +// concurrent_limit: None, +// concurrency_time_window_s: None, +// cache_ttl: None, +// dedicated_worker: None, +// })) +// .arg("world", json!("Arakis")) +// .arg("b", json!(3)) +// .run_until_complete(&db, port) +// .await +// .json_result() +// .unwrap(); +// +// assert_eq!(result, serde_json::json!("Hello Arakis - 3")); +// } #[sqlx::test(fixtures("base"))] async fn test_bash_job(db: Pool) {