[tests] Diff: the differential suite runs on Windows too (Windows Caddy, drive paths), with two branch previews in the fixtures; edge leaves a websocket 101 as the upstream sent it, as Caddy does
This commit is contained in:
@@ -180,6 +180,15 @@ pub fn server(shared: Arc<Shared>, opts: &Options) -> Result<Server, EdgeError>
|
||||
Ok(server)
|
||||
}
|
||||
|
||||
/// For running edge inside a test process on Windows (the differential suite with Windows
|
||||
/// paths, T4). Pingora on Windows stops only on Ctrl-C, so `stop` is ignored and the server
|
||||
/// lives until the test process ends. Ianitor does not ship edge on Windows (Caddy mode).
|
||||
#[cfg(windows)]
|
||||
pub fn run_until(server: Server, stop: tokio::sync::oneshot::Receiver<()>) {
|
||||
drop(stop);
|
||||
server.run(pingora::server::RunArgs::default());
|
||||
}
|
||||
|
||||
/// Run until `stop` resolves (or is dropped). For running edge inside a test process.
|
||||
#[cfg(unix)]
|
||||
pub fn run_until(server: Server, stop: tokio::sync::oneshot::Receiver<()>) {
|
||||
|
||||
Reference in New Issue
Block a user