File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
testing-framework/src/runtimes Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -341,8 +341,13 @@ mod integration_tests {
341
341
app_type : SpinAppType :: None ,
342
342
} ,
343
343
ServicesConfig :: none ( ) ,
344
- |_| Ok ( ( ) ) ,
344
+ |env| {
345
+ // Since this test asserts exact stderr output, disable logging
346
+ env. set_env_var ( "RUST_LOG" , "off" ) ;
347
+ Ok ( ( ) )
348
+ } ,
345
349
) ?;
350
+
346
351
let expected = r#"Error: Couldn't find trigger executor for local app "spin.toml"
347
352
348
353
Caused by:
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ impl SpinCli {
59
59
let port = get_random_port ( ) ?;
60
60
let mut spin_cmd = Command :: new ( spin_config. binary_path ) ;
61
61
let child = spin_cmd
62
+ . envs ( env. env_vars ( ) )
62
63
. arg ( "up" )
63
64
. current_dir ( env. path ( ) )
64
65
. args ( [ "--listen" , & format ! ( "127.0.0.1:{port}" ) ] )
@@ -117,6 +118,7 @@ impl SpinCli {
117
118
env : & mut TestEnvironment < R > ,
118
119
) -> anyhow:: Result < Self > {
119
120
let mut child = Command :: new ( spin_config. binary_path )
121
+ . envs ( env. env_vars ( ) )
120
122
. arg ( "up" )
121
123
. current_dir ( env. path ( ) )
122
124
. args ( spin_config. spin_up_args )
@@ -149,6 +151,7 @@ impl SpinCli {
149
151
env : & mut TestEnvironment < R > ,
150
152
) -> anyhow:: Result < Self > {
151
153
let mut child = Command :: new ( spin_config. binary_path )
154
+ . envs ( env. env_vars ( ) )
152
155
. arg ( "up" )
153
156
. current_dir ( env. path ( ) )
154
157
. args ( spin_config. spin_up_args )
You can’t perform that action at this time.
0 commit comments