fn finished_is_for_requests() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();

        assert_eq!(s.poll_client(), Err(Error::Done));
        assert_eq!(s.poll_server(), Err(Error::Done));

        assert_eq!(s.client.open_grease_stream(&mut s.pipe.client), Ok(()));
        assert_eq!(s.pipe.advance(), Ok(()));

        assert_eq!(s.poll_client(), Err(Error::Done));
        assert_eq!(s.poll_server(), Err(Error::Done));
    }
/// Tests that the Finished event is not issued for streams of unknown type
/// (e.g. GREASE).
Tests that the Finished event is not issued for streams of unknown type
.
Tests that the Finished event is not issued for streams of unknown type .
fn finished_is_for_requests() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();
        assert_eq!(s.poll_client(), Err(Error::Done));
        assert_eq!(s.poll_server(), Err(Error::Done));
        assert_eq!(s.client.open_grease_stream(&mut s.pipe.client), Ok(()));
        assert_eq!(s.pipe.advance(), Ok(()));
        assert_eq!(s.poll_client(), Err(Error::Done));
        assert_eq!(s.poll_server(), Err(Error::Done));
    }
fn finished_is_for_requests ( ) { let mut s = Session :: default ( ) . unwrap ( ) ; s . handshake ( ) . unwrap ( ) ; assert_eq ! ( s poll_client ( ) Err ( Error Done ) ) ; assert_eq ! ( s poll_server ( ) Err ( Error Done ) ) ; assert_eq ! ( s client open_grease_stream ( mut s pipe client ) Ok ( ( ) ) ) ; assert_eq ! ( s pipe advance ( ) Ok ( ( ) ) ) ; assert_eq ! ( s poll_client ( ) Err ( Error Done ) ) ; assert_eq ! ( s poll_server ( ) Err ( Error Done ) ) ; }
Tests that the Finished event is not issued for streams of unknown type
(e.g.
Tests that the Finished event is not issued for streams of unknown type ( e . g .