Skip to content

Commit

Permalink
Remove unused test for very long frame in e2e_test.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryStrunevsky committed Dec 6, 2024
1 parent 59e02d2 commit 8291664
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/e2e_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,24 +112,6 @@ async fn invalid_address() -> Result<()> {
Ok(())
}

#[tokio::test]
async fn very_long_frame() -> Result<()> {
let _guard = SERIAL_GUARD.lock().await;

spawn_server(None).await;
let mut attacker = TcpStream::connect(("localhost", CONTROL_PORT)).await?;

// Slowly send a very long frame.
for _ in 0..10 {
let result = attacker.write_all(&[42u8; 100000]).await;
if result.is_err() {
return Ok(());
}
time::sleep(Duration::from_millis(10)).await;
}
panic!("did not exit after a 1 MB frame");
}

#[test]
#[should_panic]
fn empty_port_range() {
Expand Down

0 comments on commit 8291664

Please sign in to comment.