Auto merge of #27198 - jdm:http-origin-test-debug, r=asajeffrey

Add debug output for intermittently failing test.

This should help narrow down the cause of #26895.
This commit is contained in:
bors-servo 2020-07-07 17:01:01 -04:00 committed by GitHub
commit bdbbed7562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1435,13 +1435,14 @@ fn test_origin_set() {
*origin_header_clone.lock().unwrap() = None;
let response = fetch(&mut request, None);
assert!(response
.internal_response
.unwrap()
.status
.unwrap()
.0
.is_success());
match response.internal_response.as_ref() {
Some(response) => {
assert!(response.status.as_ref().unwrap().0.is_success());
},
None => {
panic!("Expected internal response, got {:?}", response);
},
}
let _ = server.close();
}