mirror of
https://github.com/telemt/telemt.git
synced 2026-09-20 01:28:28 +03:00
Bounded Debugging + Websocket Carriers + Carriers Negotiation
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -70,6 +70,10 @@ fn test_runtime_with_dc(
|
||||
user: "default".to_string(),
|
||||
secret_mode: WebSecretMode::Plain,
|
||||
carrier,
|
||||
carrier_negotiation_enabled: false,
|
||||
carrier_learning: true,
|
||||
carriers: Arc::from([carrier]),
|
||||
carrier_negotiation_deadlines_secs: [3, 5, 8, 12],
|
||||
capability: [7; 32],
|
||||
key_fingerprint: "0000000000000000".to_string(),
|
||||
max_sessions: 4,
|
||||
@@ -120,6 +124,10 @@ fn test_runtime_with_dc(
|
||||
1,
|
||||
profile,
|
||||
[7; 32],
|
||||
carrier,
|
||||
1,
|
||||
[9; 32],
|
||||
None,
|
||||
limits,
|
||||
timeouts,
|
||||
);
|
||||
@@ -323,10 +331,11 @@ async fn silent_streams_do_not_consume_active_handshake_capacity() {
|
||||
assert_eq!(runtime.process_frame(2, 4, FrameType::Data, &[2]), Ok(4));
|
||||
settle_tasks().await;
|
||||
|
||||
let state = runtime.session.state.lock();
|
||||
assert!(state.streams.contains_key(&1));
|
||||
assert!(!state.streams.contains_key(&2));
|
||||
drop(state);
|
||||
{
|
||||
let state = runtime.session.state.lock();
|
||||
assert!(state.streams.contains_key(&1));
|
||||
assert!(!state.streams.contains_key(&2));
|
||||
}
|
||||
runtime.shutdown().await;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user