Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ atomic-waker = "1.0.0"
futures-core = { version = "0.3", default-features = false }
futures-sink = { version = "0.3", default-features = false }
tokio-util = { version = "0.7.1", features = ["codec", "io"] }
tokio = { version = "1", features = ["io-util"] }
tokio = { version = "1", features = ["io-util", "time"] }
bytes = "1"
http = "1.1"
tracing = { version = "0.1.35", default-features = false, features = ["std"] }
Expand Down
2 changes: 1 addition & 1 deletion src/proto/streams/recv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ use crate::frame::{PushPromiseHeaderError, Reason, DEFAULT_INITIAL_WINDOW_SIZE};
use crate::proto;

use http::{HeaderMap, Request, Response};
use tokio::time::Instant;

use std::cmp::Ordering;
use std::io;
use std::task::{Context, Poll, Waker};
use std::time::Instant;

#[derive(Debug)]
pub(super) struct Recv {
Expand Down
3 changes: 2 additions & 1 deletion src/proto/streams/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use super::*;

use std::fmt;
use std::task::{Context, Waker};
use std::time::Instant;

use tokio::time::Instant;

/// Tracks Stream related state
///
Expand Down
2 changes: 1 addition & 1 deletion tests/h2-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ edition = "2018"
h2-support = { path = "../h2-support" }
tracing = "0.1.13"
futures = { version = "0.3", default-features = false, features = ["alloc"] }
tokio = { version = "1", features = ["macros", "net", "rt", "io-util", "rt-multi-thread"] }
tokio = { version = "1", features = ["macros", "net", "rt", "io-util", "rt-multi-thread", "test-util"] }
2 changes: 1 addition & 1 deletion tests/h2-tests/tests/flow_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ async fn padded_data_stream_error_releases_connection_capacity() {
}

// Regression test for TODO
#[tokio::test]
#[tokio::test(start_paused = true)]
async fn padded_data_on_forgotten_stream_releases_connection_capacity() {
h2_support::trace_init!();
let (io, mut srv) = mock::new();
Expand Down
2 changes: 1 addition & 1 deletion tests/h2-tests/tests/stream_states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ async fn send_rst_stream_allows_recv_trailers() {
join(srv, client).await;
}

#[tokio::test]
#[tokio::test(start_paused = true)]
async fn rst_stream_expires() {
h2_support::trace_init!();
let (io, mut srv) = mock::new();
Expand Down