summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorChubby Puddles Esq <andrew@2b9x.com>2020-01-09 16:21:07 -0800
committerChubby Puddles Esq <andrew@2b9x.com>2020-01-09 16:32:03 -0800
commit6fab7d9c53b394f4e71a4f65eeb5959bf38f0288 (patch)
tree0625aabfcf5581ef6e48c748878df4d33be747c7 /src/tests
parent81a751a91b7ccae92b93626b8d59bd2021e5b842 (diff)
Upgraded trust-dns-resolver (#92)
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/fakes/fake_input.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/fakes/fake_input.rs b/src/tests/fakes/fake_input.rs
index 92042df..bd4295e 100644
--- a/src/tests/fakes/fake_input.rs
+++ b/src/tests/fakes/fake_input.rs
@@ -9,6 +9,7 @@ use ::std::pin::Pin;
use ::std::task::{Context, Poll};
use ::std::{thread, time};
use ::termion::event::Event;
+use ::tokio::runtime::Runtime;
use crate::{
network::{
@@ -172,7 +173,8 @@ pub fn create_fake_on_winch(should_send_winch_event: bool) -> Box<OnSigWinch> {
}
pub fn create_fake_dns_client(ips_to_hosts: HashMap<IpAddr, String>) -> Option<dns::Client> {
- let dns_client = dns::Client::new(FakeResolver(ips_to_hosts), FakeBackground {}).unwrap();
+ let runtime = Runtime::new().unwrap();
+ let dns_client = dns::Client::new(FakeResolver(ips_to_hosts), runtime).unwrap();
Some(dns_client)
}