Fix client stats: shared BandwidthState survives timeout cancellation
All checks were successful
CI / test (push) Successful in 1m24s
All checks were successful
CI / test (push) Successful in 1m24s
The state is now created in main.rs and passed into run_client, so when --duration timeout cancels the future, the stats are still accessible via shared_state.summary(). CSV and syslog now show real speeds and byte counts. Verified: TCP loopback shows 32 Gbps in CSV output. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -153,6 +153,7 @@ async fn test_loopback_tcp_rx() {
|
||||
None,
|
||||
None,
|
||||
false,
|
||||
btest_rs::bandwidth::BandwidthState::new(),
|
||||
)
|
||||
.await
|
||||
});
|
||||
@@ -177,6 +178,7 @@ async fn test_loopback_tcp_tx() {
|
||||
None,
|
||||
None,
|
||||
false,
|
||||
btest_rs::bandwidth::BandwidthState::new(),
|
||||
)
|
||||
.await
|
||||
});
|
||||
@@ -201,6 +203,7 @@ async fn test_loopback_tcp_both() {
|
||||
None,
|
||||
None,
|
||||
false,
|
||||
btest_rs::bandwidth::BandwidthState::new(),
|
||||
)
|
||||
.await
|
||||
});
|
||||
@@ -225,6 +228,7 @@ async fn test_loopback_tcp_with_auth() {
|
||||
Some("admin".into()),
|
||||
Some("secret".into()),
|
||||
false,
|
||||
btest_rs::bandwidth::BandwidthState::new(),
|
||||
)
|
||||
.await
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user