Make all platforms use a delay during cookie tests. (#33279)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-09-01 16:07:46 -04:00 committed by GitHub
parent 12a782dc20
commit a62612a025
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -165,7 +165,6 @@ fn test_cookie_host_prefix() {
assert!(ServoCookie::new_wrapped(cookie, url, CookieSource::HTTP).is_some());
}
#[cfg(target_os = "windows")]
fn delay_to_ensure_different_timestamp() {
use std::thread;
use std::time::Duration;
@ -175,9 +174,6 @@ fn delay_to_ensure_different_timestamp() {
thread::sleep(Duration::from_millis(500));
}
#[cfg(not(target_os = "windows"))]
fn delay_to_ensure_different_timestamp() {}
#[test]
fn test_sort_order() {
use std::cmp::Ordering;