Add Reset::INTERNAL_ERROR helper to test support (#308)

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
This commit is contained in:
Eliza Weisman
2018-09-13 16:33:44 -07:00
committed by Sean McArthur
parent d464c6bfff
commit 2b960b897d

View File

@@ -295,6 +295,11 @@ impl Mock<frame::Reset> {
let id = self.0.stream_id();
Mock(frame::Reset::new(id, frame::Reason::CANCEL))
}
pub fn internal_error(self) -> Self {
let id = self.0.stream_id();
Mock(frame::Reset::new(id, frame::Reason::INTERNAL_ERROR))
}
}
impl From<Mock<frame::Reset>> for SendFrame {