Skip to content

Instantly share code, notes, and snippets.

@b-zee
b-zee / test_many_uni.rs
Created November 9, 2022 16:11
`quinn` test failing on 0.9
use quinn::{
ClientConfig, ConnectionError, Endpoint, ServerConfig, VarInt,
};
use std::{error::Error, net::SocketAddr, sync::Arc};
const COUNT: u32 = 1_000;
#[tokio::test]
async fn test_many_uni() -> Result<(), Box<dyn Error>> {
// A vector of numbers counting up from 0.
@b-zee
b-zee / test_many_uni.rs
Last active November 9, 2022 15:55
`quinn` test for sending many (1000) messages over uni streams at once and receiving them
use quinn::{
ClientConfig, ConnectionError, Endpoint, Incoming, NewConnection, ServerConfig, VarInt,
};
use std::{error::Error, net::SocketAddr, sync::Arc};
const COUNT: u32 = 1_000;
#[tokio::test]
async fn test_many_uni() -> Result<(), Box<dyn Error>> {
// A vector of numbers counting up from 0.

Keybase proof

I hereby claim:

  • I am b-zee on github.
  • I am bzee (https://keybase.io/bzee) on keybase.
  • I have a public key ASBc-DjnHESi7u4jDnDZqKI3fHgl-aoIKwjd4oi9eVeBzwo

To claim this, I am signing this object: