Auto merge of #28448 - servo:jdm-patch-46, r=jdm

Disable intermittent unit tests
This commit is contained in:
bors-servo 2021-05-28 21:46:33 -04:00 committed by GitHub
commit dda406156f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View file

@ -130,7 +130,7 @@ fn test_hang_monitoring() {
#[test]
// https://github.com/servo/servo/issues/28270
#[cfg(not(target_os = "windows"))]
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
fn test_hang_monitoring_unregister() {
let _lock = SERIAL.lock().unwrap();
@ -166,7 +166,7 @@ fn test_hang_monitoring_unregister() {
#[test]
// https://github.com/servo/servo/issues/28270
#[cfg(not(target_os = "windows"))]
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
fn test_hang_monitoring_exit_signal() {
let _lock = SERIAL.lock().unwrap();

View file

@ -2,6 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#![cfg(not(target_os = "windows"))]
use crate::fetch_with_context;
use crate::fetch_with_cors_cache;
use crate::http_loader::{expect_devtools_http_request, expect_devtools_http_response};
@ -1344,6 +1346,7 @@ fn test_opaque_redirect_filtered_fetch_async_returns_complete_response() {
}
#[test]
#[cfg(not(target_os = "windows"))]
fn test_fetch_with_devtools() {
static MESSAGE: &'static [u8] = b"Yay!";
let handler = move |_: HyperRequest<Body>, response: &mut HyperResponse<Body>| {

View file

@ -2,6 +2,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#![cfg(not(target_os = "windows"))]
use crate::fetch;
use crate::fetch_with_context;
use crate::make_server;
@ -333,6 +335,7 @@ fn test_request_and_response_data_with_network_messages() {
}
#[test]
#[cfg(not(target_os = "windows"))]
fn test_request_and_response_message_from_devtool_without_pipeline_id() {
let handler = move |_: HyperRequest<Body>, response: &mut HyperResponse<Body>| {
response

View file

@ -3,6 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#![cfg(test)]
#![allow(dead_code)]
#[macro_use]
extern crate lazy_static;