mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
test(net): update test cases
This commit is contained in:
parent
f69b124444
commit
c4c0d263e9
4 changed files with 23 additions and 27 deletions
|
@ -552,12 +552,13 @@ fn test_fetch_with_hsts() {
|
|||
let mut ca_content = String::new();
|
||||
File::open(cert_path).unwrap().read_to_string(&mut ca_content).unwrap();
|
||||
let ssl_client = create_ssl_client(&ca_content);
|
||||
let (sender, _) = channel();
|
||||
|
||||
let context = FetchContext {
|
||||
state: Arc::new(HttpState::new(ssl_client)),
|
||||
user_agent: DEFAULT_USER_AGENT.into(),
|
||||
devtools_chan: None,
|
||||
filemanager: FileManager::new(),
|
||||
filemanager: FileManager::new(sender),
|
||||
cancellation_listener: Arc::new(Mutex::new(CancellationListener::new(None))),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue