Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed May 25, 2024
1 parent 6321302 commit dc02e1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/kitsune-wasm-mrf/tests/load_and_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use kitsune_wasm_mrf::{MrfModule, MrfService, Outcome};
use mrf_manifest::{ActivitySet, ApiVersion, ManifestV1};
use smol_str::SmolStr;
use std::{borrow::Cow, collections::BTreeSet};
use tempfile::NamedTempFile;
use wasmtime::{component::Component, Config, Engine};

const WASM_COMPONENT: &[u8] = include_bytes!("example_mrf.component.wasm");
Expand All @@ -22,8 +23,8 @@ fn dummy_manifest() -> ManifestV1<'static> {
async fn basic() {
tracing_subscriber::fmt::init();

let dir = tempfile::tempdir().unwrap();
let fs_backend = kitsune_wasm_mrf::kv_storage::FsBackend::from_path(dir.path()).unwrap();
let db_file = NamedTempFile::new().unwrap();
let fs_backend = kitsune_wasm_mrf::kv_storage::FsBackend::from_path(db_file.path()).unwrap();

let mut config = Config::new();
config.async_support(true).wasm_component_model(true);
Expand Down

0 comments on commit dc02e1d

Please sign in to comment.