File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
pub mod cli;
2
2
pub mod loader;
3
- mod network;
3
+ pub mod network;
4
4
mod runtime_config;
5
5
mod stdio;
6
6
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ impl RuntimeTest<InProcessSpin> {
124
124
Ok ( ( ) )
125
125
} ;
126
126
let services_config = services_config ( & config) ?;
127
- let env_config = TestEnvironmentConfig :: in_memory ( services_config, preboot) ;
127
+ let env_config = TestEnvironmentConfig :: in_process ( services_config, preboot) ;
128
128
let env = TestEnvironment :: up ( env_config) ?;
129
129
Ok ( Self {
130
130
test_path : config. test_path ,
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ impl TestEnvironmentConfig<SpinCli> {
193
193
}
194
194
195
195
impl TestEnvironmentConfig < InProcessSpin > {
196
- pub fn in_memory (
196
+ pub fn in_process (
197
197
services_config : ServicesConfig ,
198
198
preboot : impl FnOnce ( & mut TestEnvironment < InProcessSpin > ) -> anyhow:: Result < ( ) > + ' static ,
199
199
) -> Self {
@@ -219,7 +219,10 @@ impl TestEnvironmentConfig<InProcessSpin> {
219
219
std:: fs:: write ( env. path ( ) . join ( "locked.json" ) , json) ?;
220
220
221
221
let loader = TriggerLoader :: new ( env. path ( ) . join ( ".working_dir" ) , false ) ;
222
- let trigger = TriggerExecutorBuilder :: < HttpTrigger > :: new ( loader)
222
+ let mut builder = TriggerExecutorBuilder :: < HttpTrigger > :: new ( loader) ;
223
+ // TODO(rylev): see if we can reuse the builder from spin_trigger instead of duplicating it here
224
+ builder. hooks ( spin_trigger:: network:: Network ) ;
225
+ let trigger = builder
223
226
. build (
224
227
format ! ( "file:{}" , env. path( ) . join( "locked.json" ) . display( ) ) ,
225
228
RuntimeConfig :: default ( ) ,
You can’t perform that action at this time.
0 commit comments