Skip to content

Commit

Permalink
test(http1): only enable WriteBuf non-empty test with debug-assertions
Browse files Browse the repository at this point in the history
Closes #2062
  • Loading branch information
seanmonstar committed Dec 12, 2019
1 parent 2553ea1 commit d1f6136
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/proto/h1/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ mod tests {

#[test]
#[should_panic]
#[cfg(debug_assertions)] // needs to trigger a debug_assert
fn write_buf_requires_non_empty_bufs() {
let mock = Mock::new().build();
let mut buffered = Buffered::<_, Cursor<Vec<u8>>>::new(mock);
Expand Down

0 comments on commit d1f6136

Please sign in to comment.