We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c35b81 commit 300426cCopy full SHA for 300426c
1 file changed
contract/src/config.rs
@@ -194,6 +194,10 @@ mod tests {
194
#[test]
195
fn from_env_uses_defaults_when_missing() {
196
clear_env();
197
+ env::set_var(
198
+ "STELLAR_SECRET_KEY",
199
+ "SAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
200
+ );
201
let cfg = AppConfig::from_env().expect("config should load with defaults");
202
203
assert_eq!(cfg.port, 8080);
@@ -229,6 +233,10 @@ mod tests {
229
233
env::set_var("REDIS_URL", "redis://redis:6379");
230
234
env::set_var("RATE_LIMIT_PER_SECOND", "100");
231
235
env::set_var("WEBHOOK_URLS", "https://a.com, https://b.com");
236
237
238
239
232
240
241
let cfg = AppConfig::from_env().expect("config should load");
242
0 commit comments