web, tests: Ignore timeout parameter

This commit is contained in:
sleepycatcoding 2023-07-17 18:18:01 +03:00 committed by Nathan Adams
parent c0ebafdb95
commit 486c0ca149
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@ use ruffle_core::loader::Error;
use ruffle_core::socket::{SocketAction, SocketHandle};
use std::path::{Path, PathBuf};
use std::sync::mpsc::{Receiver, Sender};
use std::time::Duration;
use url::{ParseError, Url};
/// A `NavigatorBackend` used by tests that supports logging fetch requests.
@ -101,6 +102,7 @@ impl NavigatorBackend for TestNavigatorBackend {
&mut self,
host: String,
port: u16,
timeout: Option<Duration>,
handle: SocketHandle,
_receiver: Receiver<Vec<u8>>,
sender: Sender<SocketAction>,

View File

@ -10,6 +10,7 @@ use ruffle_core::loader::Error;
use ruffle_core::socket::{SocketAction, SocketHandle};
use std::sync::mpsc::{Receiver, Sender};
use std::sync::Arc;
use std::time::Duration;
use tracing_subscriber::layer::Layered;
use tracing_subscriber::Registry;
use tracing_wasm::WASMLayer;
@ -362,6 +363,7 @@ impl NavigatorBackend for WebNavigatorBackend {
&mut self,
_host: String,
_port: u16,
_timeout: Option<Duration>,
handle: SocketHandle,
_receiver: Receiver<Vec<u8>>,
sender: Sender<SocketAction>,