mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
commit
bdbbed7562
1 changed files with 8 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue