mirror of
https://github.com/servo/servo.git
synced 2025-08-22 13:55:34 +01:00
removed race condition possibility from auth cache test & fixed up test errors
This commit is contained in:
parent
712b1d5ea0
commit
715682c3a8
4 changed files with 40 additions and 22 deletions
|
@ -1533,7 +1533,7 @@ fn test_if_auth_creds_not_in_url_but_in_cache_it_sets_it() {
|
|||
password: "test".to_owned(),
|
||||
};
|
||||
|
||||
http_state.auth_cache.write().unwrap().entries.insert(url.origin().clone(), auth_entry);
|
||||
http_state.auth_cache.write().unwrap().entries.insert(url.origin().clone().ascii_serialization(), auth_entry);
|
||||
|
||||
let mut load_data = LoadData::new(LoadContext::Browsing, url, &HttpTest);
|
||||
load_data.credentials_flag = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue