s2n-quic-dc 0.77.0

Internal crate used by s2n-quic
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use super::testing::dcquic::tcp::*;

#[tokio::test]
async fn context_accessible() {
    let context = Context::new().await;
    let (mut client, _server) = context.pair().await;

    // Confirms that the () context on NoopSubscriber is accessible.
    client.query_event_context(|_: &()| ()).unwrap();
    let (read, write) = client.split();
    read.query_event_context(|_: &()| ()).unwrap();
    write.query_event_context(|_: &()| ()).unwrap();
}