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

        s.send_frame_client(
            frame::Frame::PriorityUpdateRequest {
                prioritized_element_id: 5,
                priority_field_value: b"u=3".to_vec(),
            },
            s.client.control_stream_id.unwrap(),
            false,
        )
        .unwrap();

        assert_eq!(s.poll_server(), Err(Error::FrameUnexpected));
    }
/// Send a PRIORITY_UPDATE for request stream from the client but for an
/// incorrect stream type.
Send a PRIORITY_UPDATE for request stream from the client but for an
incorrect stream type.
Send a PRIORITY_UPDATE for request stream from the client but for an incorrect stream type .
fn priority_update_request_bad_stream() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();
        s.send_frame_client(
            frame::Frame::PriorityUpdateRequest {
                prioritized_element_id: 5,
                priority_field_value: b"u=3".to_vec(),
            },
            s.client.control_stream_id.unwrap(),
            false,
        )
        .unwrap();
        assert_eq!(s.poll_server(), Err(Error::FrameUnexpected));
    }
fn priority_update_request_bad_stream ( ) { let mut s = Session :: default ( ) . unwrap ( ) ; s . handshake ( ) . unwrap ( ) ; s . send_frame_client ( frame :: Frame :: PriorityUpdateRequest { prioritized_element_id : 5 , priority_field_value : b" " . to_vec ( ) , } , s . client . control_stream_id . unwrap ( ) , false , ) . unwrap ( ) ; assert_eq ! ( s poll_server ( ) Err ( Error FrameUnexpected ) ) ; }
Send a PRIORITY_UPDATE for request stream from the client but for an
incorrect stream type.
Send a PRIORITY_UPDATE for request stream from the client but for an incorrect stream type .