Skip to content

Commit

Permalink
cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
dswij committed Dec 9, 2023
1 parent 110f522 commit ea43cea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 165 deletions.
149 changes: 0 additions & 149 deletions tests/legacy/client.rs

This file was deleted.

17 changes: 1 addition & 16 deletions tests/test_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
use std::io;
use std::pin::Pin;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;

use futures_channel::{mpsc, oneshot};
use futures_channel::mpsc;
use futures_util::task::{Context, Poll};
use futures_util::Future;
use futures_util::TryFutureExt;
use hyper::Uri;
use tokio::io::ReadBuf;
use tokio::io::{AsyncRead, AsyncWrite};
use tokio::net::TcpStream;

use hyper::rt::Read;
use hyper::rt::ReadBufCursor;

use hyper_util::client::legacy::connect::HttpConnector;
Expand All @@ -29,12 +25,6 @@ pub struct DebugConnector {
}

impl DebugConnector {
pub fn new() -> DebugConnector {
let http = HttpConnector::new();
let (tx, _) = mpsc::channel(10);
DebugConnector::with_http_and_closes(http, tx)
}

pub fn with_http_and_closes(http: HttpConnector, closes: mpsc::Sender<()>) -> DebugConnector {
DebugConnector {
http,
Expand All @@ -44,11 +34,6 @@ impl DebugConnector {
alpn_h2: false,
}
}

fn proxy(mut self) -> Self {
self.is_proxy = true;
self
}
}

impl tower_service::Service<Uri> for DebugConnector {
Expand Down

0 comments on commit ea43cea

Please sign in to comment.