We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5bad58 commit 75eb37cCopy full SHA for 75eb37c
common/tests/loc_over_bus.rs
@@ -182,9 +182,11 @@ async fn loc_round_trip_over_caryatid() -> Result<()> {
182
REGISTRY.set(reg.clone()).ok();
183
184
// Read the config
185
+ // Use an absolute path for the config file so the test works regardless of the working directory.
186
+ // This ensures config-rs always finds the file, even when integration tests are run from the workspace root or other locations.
187
let config = Arc::new(
188
Config::builder()
- .add_source(File::with_name("test"))
189
+ .add_source(File::with_name(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/test")))
190
.add_source(Environment::with_prefix("CARYATID"))
191
.build()
192
.unwrap(),
0 commit comments