Skip to content

Commit 8f057fb

Browse files
author
Roy Lin
committed
test(runtime): use a host-absolute join fixture
1 parent d2005c1 commit 8f057fb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/runtime/src/namespace_join.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ fn bundle_from_value(directory: &Path, config: Value) -> Result<OciBundle, Strin
141141

142142
#[cfg(test)]
143143
mod tests {
144-
use std::path::PathBuf;
145-
146144
use a3s_oci_sdk::OciBundle;
147145
use serde_json::Value;
148146

@@ -152,8 +150,10 @@ mod tests {
152150

153151
#[test]
154152
fn derives_positive_and_negative_join_profiles_from_the_qualified_bundle() {
155-
let base = OciBundle::from_json(PathBuf::from("/run/a3s/bundle-b"), CONFIG)
156-
.expect("qualified base bundle");
153+
let bundle_directory = std::env::current_dir()
154+
.expect("current test directory")
155+
.join("namespace-join-bundle");
156+
let base = OciBundle::from_json(bundle_directory, CONFIG).expect("qualified base bundle");
157157
let bundles = build_bundles(&base, 4242).expect("namespace join bundles");
158158

159159
let non_mount: Value =

0 commit comments

Comments
 (0)