Skip to content

Commit 069d9fa

Browse files
committed
Make integration_test handle components as inputs, not just modules
Signed-off-by: Till Schneidereit <[email protected]>
1 parent 6e97468 commit 069d9fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/core/tests/integration_test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ async fn run_test(
152152

153153
let module_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
154154
.join("../../target/test-programs/core-wasi-test.wasm");
155-
let component = spin_componentize::componentize_command(&fs::read(module_path).await?)?;
155+
let module_bytes = fs::read(module_path).await?;
156+
let component = spin_componentize::componentize_if_necessary(&module_bytes)?;
156157
let component = Component::new(engine.as_ref(), &component)?;
157158
let instance_pre = engine.instantiate_pre(&component)?;
158159
let instance = instance_pre.instantiate_async(&mut store).await?;

0 commit comments

Comments
 (0)