mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Auto merge of #28350 - servo:jdm-patch-46, r=jdm
Try to work around windows unit test failures. Attempting to work around #28274.
This commit is contained in:
commit
662161271c
1 changed files with 4 additions and 5 deletions
|
@ -352,9 +352,9 @@ fn test_request_and_response_message_from_devtool_without_pipeline_id() {
|
||||||
let (devtools_chan, devtools_port) = unbounded();
|
let (devtools_chan, devtools_port) = unbounded();
|
||||||
let response = fetch(&mut request, Some(devtools_chan));
|
let response = fetch(&mut request, Some(devtools_chan));
|
||||||
assert!(response
|
assert!(response
|
||||||
.internal_response
|
.actual_response()
|
||||||
.unwrap()
|
|
||||||
.status
|
.status
|
||||||
|
.as_ref()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.0
|
.0
|
||||||
.is_success());
|
.is_success());
|
||||||
|
@ -793,7 +793,6 @@ fn test_cookie_set_with_httponly_should_not_be_available_using_getcookiesforurl(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(target_os = "windows"))]
|
|
||||||
fn test_when_cookie_received_marked_secure_is_ignored_for_http() {
|
fn test_when_cookie_received_marked_secure_is_ignored_for_http() {
|
||||||
let handler = move |_: HyperRequest<Body>, response: &mut HyperResponse<Body>| {
|
let handler = move |_: HyperRequest<Body>, response: &mut HyperResponse<Body>| {
|
||||||
response.headers_mut().insert(
|
response.headers_mut().insert(
|
||||||
|
@ -822,9 +821,9 @@ fn test_when_cookie_received_marked_secure_is_ignored_for_http() {
|
||||||
let _ = server.close();
|
let _ = server.close();
|
||||||
|
|
||||||
assert!(response
|
assert!(response
|
||||||
.internal_response
|
.actual_response()
|
||||||
.unwrap()
|
|
||||||
.status
|
.status
|
||||||
|
.as_ref()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.0
|
.0
|
||||||
.is_success());
|
.is_success());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue