From 94f455690c8544f6ddfa6a2d9ddfbc1d9cb72aa5 Mon Sep 17 00:00:00 2001 From: wendrul Date: Thu, 12 Dec 2024 11:58:19 +0100 Subject: [PATCH] Fix c# test --- backend/tests/worker.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/tests/worker.rs b/backend/tests/worker.rs index aaa1c08f68..1ec3587f0f 100644 --- a/backend/tests/worker.rs +++ b/backend/tests/worker.rs @@ -1809,10 +1809,10 @@ using System; class Script { - public static string moin(string world) + public static string Main(string world, int b = 2) { - Console.WriteLine($"Hello {world}"); - return $"Hello {world}"; + Console.WriteLine($"Hello {world} - {b}. This is a log line"); + return $"Hello {world} - {b}"; } } "# @@ -1831,12 +1831,13 @@ class Script 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")); + assert_eq!(result, serde_json::json!("Hello Arakis - 3")); } #[sqlx::test(fixtures("base"))]