Fix failing test

This commit is contained in:
Isaac Clayton 2022-07-13 13:27:31 +02:00
parent c956a8866e
commit daf1674ca6

View file

@ -105,8 +105,6 @@ impl PluginBuilder {
fn create_engine(yield_when: &PluginYield) -> Result<(Engine, Linker<WasiCtxAlloc>), Error> {
let mut config = Config::default();
config.async_support(true);
let engine = Engine::new(&config)?;
let linker = Linker::new(&engine);
match yield_when {
PluginYield::Epoch { .. } => {
@ -117,6 +115,8 @@ impl PluginBuilder {
}
}
let engine = Engine::new(&config)?;
let linker = Linker::new(&engine);
Ok((engine, linker))
}