From af40bb11b4986052dfe551dc6dd8ed05a40eea7c Mon Sep 17 00:00:00 2001 From: Hammad Bashir Date: Tue, 19 Mar 2024 22:10:34 -0700 Subject: [PATCH] [TST] Add test that the default config loads and parses (#1901) ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Adds a basic test to ensure that the default config loads and parses - New functionality - None ## Test plan *How are these changes tested?* This is a test - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust ## Documentation Changes None --- rust/worker/src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rust/worker/src/config.rs b/rust/worker/src/config.rs index c9c3d82f679..309155bfb9d 100644 --- a/rust/worker/src/config.rs +++ b/rust/worker/src/config.rs @@ -333,4 +333,10 @@ mod tests { Ok(()) }); } + + #[test] + fn test_default_config_path() { + // Sanity check that root config loads from default path correctly + let _ = RootConfig::load(); + } }