Skip to content

Commit

Permalink
Added resumption to required tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maddeleine committed Jan 18, 2024
1 parent e7d20b3 commit 31b5ffc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions quic/s2n-quic-qns/src/client/interop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ impl Interop {
// In the Resumption test, the client needs to start a handshake and complete it before
// starting a resumption handshake with a session ticket from the first handshake. Therefore,
// the two handshake requests are run one after another synchronously.
let concurrency = if matches!(self.testcase, Some(Testcase::Resumption)) {
1
} else {
self.concurrency
let mut concurrency = self.concurrency;
let mut keep_alive = self.keep_alive;
if matches!(self.testcase, Some(Testcase::Resumption)) {
concurrency = 1;
keep_alive = Some(Duration::from_millis(500));
};
let mut tasks = task::Limiter::new(concurrency);

Expand All @@ -107,7 +108,7 @@ impl Interop {
connect,
requests,
download_dir.clone(),
self.keep_alive,
keep_alive,
);

if let Some(task) = tasks.spawn(task).await {
Expand Down

0 comments on commit 31b5ffc

Please sign in to comment.