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

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

        assert_eq!(s.poll_server(), Ok((0, Event::PriorityUpdate)));
        assert_eq!(s.poll_server(), Err(Error::Done));

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

        assert_eq!(s.poll_server(), Ok((4, Event::PriorityUpdate)));
        assert_eq!(s.poll_server(), Err(Error::Done));

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

        assert_eq!(s.poll_server(), Ok((8, Event::PriorityUpdate)));
        assert_eq!(s.poll_server(), Err(Error::Done));

        assert_eq!(s.server.take_last_priority_update(0), Ok(b"u=3".to_vec()));
        assert_eq!(s.server.take_last_priority_update(4), Ok(b"u=1".to_vec()));
        assert_eq!(s.server.take_last_priority_update(8), Ok(b"u=2".to_vec()));
        assert_eq!(s.server.take_last_priority_update(0), Err(Error::Done));
    }
/// Send multiple PRIORITY_UPDATE frames for different streams from the
/// client across multiple flights of exchange.
Send multiple PRIORITY_UPDATE frames for different streams from the
client across multiple flights of exchange.
Send multiple PRIORITY_UPDATE frames for different streams from the client across multiple flights of exchange .
fn priority_update_request_multiple_stream_arm_multiple_flights() {
        let mut s = Session::default().unwrap();
        s.handshake().unwrap();
        s.send_frame_client(
            frame::Frame::PriorityUpdateRequest {
                prioritized_element_id: 0,
                priority_field_value: b"u=3".to_vec(),
            },
            s.client.control_stream_id.unwrap(),
            false,
        )
        .unwrap();
        assert_eq!(s.poll_server(), Ok((0, Event::PriorityUpdate)));
        assert_eq!(s.poll_server(), Err(Error::Done));
        s.send_frame_client(
            frame::Frame::PriorityUpdateRequest {
                prioritized_element_id: 4,
                priority_field_value: b"u=1".to_vec(),
            },
            s.client.control_stream_id.unwrap(),
            false,
        )
        .unwrap();
        assert_eq!(s.poll_server(), Ok((4, Event::PriorityUpdate)));
        assert_eq!(s.poll_server(), Err(Error::Done));
        s.send_frame_client(
            frame::Frame::PriorityUpdateRequest {
                prioritized_element_id: 8,
                priority_field_value: b"u=2".to_vec(),
            },
            s.client.control_stream_id.unwrap(),
            false,
        )
        .unwrap();
        assert_eq!(s.poll_server(), Ok((8, Event::PriorityUpdate)));
        assert_eq!(s.poll_server(), Err(Error::Done));
        assert_eq!(s.server.take_last_priority_update(0), Ok(b"u=3".to_vec()));
        assert_eq!(s.server.take_last_priority_update(4), Ok(b"u=1".to_vec()));
        assert_eq!(s.server.take_last_priority_update(8), Ok(b"u=2".to_vec()));
        assert_eq!(s.server.take_last_priority_update(0), Err(Error::Done));
    }
fn priority_update_request_multiple_stream_arm_multiple_flights ( ) { let mut s = Session :: default ( ) . unwrap ( ) ; s . handshake ( ) . unwrap ( ) ; s . send_frame_client ( frame :: Frame :: PriorityUpdateRequest { prioritized_element_id : 0 , priority_field_value : b" " . to_vec ( ) , } , s . client . control_stream_id . unwrap ( ) , false , ) . unwrap ( ) ; assert_eq ! ( s poll_server ( ) Ok ( ( 0 Event PriorityUpdate ) ) ) ; assert_eq ! ( s poll_server ( ) Err ( Error Done ) ) ; s . send_frame_client ( frame :: Frame :: PriorityUpdateRequest { prioritized_element_id : 4 , priority_field_value : b" " . to_vec ( ) , } , s . client . control_stream_id . unwrap ( ) , false , ) . unwrap ( ) ; assert_eq ! ( s poll_server ( ) Ok ( ( 4 Event PriorityUpdate ) ) ) ; assert_eq ! ( s poll_server ( ) Err ( Error Done ) ) ; s . send_frame_client ( frame :: Frame :: PriorityUpdateRequest { prioritized_element_id : 8 , priority_field_value : b" " . to_vec ( ) , } , s . client . control_stream_id . unwrap ( ) , false , ) . unwrap ( ) ; assert_eq ! ( s poll_server ( ) Ok ( ( 8 Event PriorityUpdate ) ) ) ; assert_eq ! ( s poll_server ( ) Err ( Error Done ) ) ; assert_eq ! ( s server take_last_priority_update ( 0 ) Ok ( b" " to_vec ( ) ) ) ; assert_eq ! ( s server take_last_priority_update ( 4 ) Ok ( b" " to_vec ( ) ) ) ; assert_eq ! ( s server take_last_priority_update ( 8 ) Ok ( b" " to_vec ( ) ) ) ; assert_eq ! ( s server take_last_priority_update ( 0 ) Err ( Error Done ) ) ; }
Send multiple PRIORITY_UPDATE frames for different streams from the
client across multiple flights of exchange.
Send multiple PRIORITY_UPDATE frames for different streams from the client across multiple flights of exchange .