From 4cae36b03ccd8ccabc7eae9d28ac06b6462adbcf Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Fri, 12 Aug 2022 12:35:22 +0200 Subject: [PATCH] Extend fs::write test delay, and remove admin server from test to prevent flakiness (#569) --- src/config/watch/fs.rs | 2 +- src/xds.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/watch/fs.rs b/src/config/watch/fs.rs index 06cd7137d5..6da87f653c 100644 --- a/src/config/watch/fs.rs +++ b/src/config/watch/fs.rs @@ -84,7 +84,7 @@ mod tests { }); std::fs::write(&file_path, serde_yaml::to_string(&source).unwrap()).unwrap(); - tokio::time::sleep(std::time::Duration::from_millis(250)).await; + tokio::time::sleep(std::time::Duration::from_millis(500)).await; assert_eq!(source, dest); } diff --git a/src/xds.rs b/src/xds.rs index fd76331ed2..4fe0c9a1d3 100644 --- a/src/xds.rs +++ b/src/xds.rs @@ -289,6 +289,7 @@ mod tests { async fn basic() { let config: Arc = serde_json::from_value(serde_json::json!({ "version": "v1alpha1", + "admin": null, "proxy": { "id": "test-proxy", "port": 23456u16,