From 64782d7e9b986adf5d09f85e8150df6e6daede56 Mon Sep 17 00:00:00 2001 From: Cheick Keita Date: Tue, 16 May 2023 12:37:48 -0700 Subject: [PATCH] fix tests (#3107) --- src/agent/onefuzz-agent/src/worker/tests.rs | 2 +- src/agent/onefuzz-task/src/managed/cmd.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/onefuzz-agent/src/worker/tests.rs b/src/agent/onefuzz-agent/src/worker/tests.rs index 41e751af94..57573b7975 100644 --- a/src/agent/onefuzz-agent/src/worker/tests.rs +++ b/src/agent/onefuzz-agent/src/worker/tests.rs @@ -14,7 +14,7 @@ impl Fixture { fn work(&self) -> WorkUnit { let job_id = "d4e6cb4a-917e-4826-8a44-7646938c80a8".parse().unwrap(); let task_id = "1cfcdfe6-df10-42a5-aab7-1a45db0d0e48".parse().unwrap(); - let config = r#"{ "some": "config" }"#.to_owned().into(); + let config = r#"{ "hello": "world", "task_id" : "ed1eeec9-2f39-442d-9e70-563454b866c0", "instance_id": "5220ff9b-2ab2-4cf8-b9ad-b948c3b94f08" }"#.to_owned().into(); WorkUnit { job_id, diff --git a/src/agent/onefuzz-task/src/managed/cmd.rs b/src/agent/onefuzz-task/src/managed/cmd.rs index bb0e18cc13..1cb23d90cc 100644 --- a/src/agent/onefuzz-task/src/managed/cmd.rs +++ b/src/agent/onefuzz-task/src/managed/cmd.rs @@ -28,7 +28,7 @@ pub async fn run(args: &clap::ArgMatches) -> Result<()> { write!( w, "[{}] [{}] {}", - now.now_utc_owned().format("%Y-%m-%d %H:%M:%S%.4f"), + now.now_utc_owned().format("%Y-%m-%d %H:%M:%S%.6f UTC"), record.level(), &record.args() )