mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Make all platforms use a delay during cookie tests. (#33279)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
12a782dc20
commit
a62612a025
1 changed files with 0 additions and 4 deletions
|
@ -165,7 +165,6 @@ fn test_cookie_host_prefix() {
|
||||||
assert!(ServoCookie::new_wrapped(cookie, url, CookieSource::HTTP).is_some());
|
assert!(ServoCookie::new_wrapped(cookie, url, CookieSource::HTTP).is_some());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
|
||||||
fn delay_to_ensure_different_timestamp() {
|
fn delay_to_ensure_different_timestamp() {
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
@ -175,9 +174,6 @@ fn delay_to_ensure_different_timestamp() {
|
||||||
thread::sleep(Duration::from_millis(500));
|
thread::sleep(Duration::from_millis(500));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os = "windows"))]
|
|
||||||
fn delay_to_ensure_different_timestamp() {}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_sort_order() {
|
fn test_sort_order() {
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue