Skip to content

Commit 2098311

Browse files
committed
sentry - instanciate PlatformApi using Config
1 parent e133934 commit 2098311

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sentry/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,8 @@ pub mod test_util {
536536

537537
let campaign_remaining = CampaignRemaining::new(redis.connection.clone());
538538

539-
// TODO: Should we get from wiremock?
540539
let platform_url = "http://change-me.tm".parse().expect("Bad ApiUrl!");
541-
// Configure keep_alive_interval!
542-
let platform_api = PlatformApi::new(platform_url, std::time::Duration::from_secs(3))
540+
let platform_api = PlatformApi::new(platform_url, config.platform.keep_alive_interval)
543541
.expect("should build test PlatformApi");
544542

545543
let app = Application::new(

0 commit comments

Comments
 (0)