Expose QUIC fabric capacity pressure
This commit is contained in:
@@ -267,7 +267,11 @@ func TestQUICFabricTransportLimitsStreamsPerConnection(t *testing.T) {
|
||||
t.Fatal("second connect succeeded past stream limit")
|
||||
}
|
||||
snapshot := transport.Snapshot()
|
||||
if snapshot.ActiveStreams != 1 || snapshot.Stats.StreamLimitRejects != 1 {
|
||||
if snapshot.ActiveStreams != 1 ||
|
||||
snapshot.MaxStreamsPerConn != 1 ||
|
||||
snapshot.SaturatedConnections != 1 ||
|
||||
snapshot.CapacityPressurePercent != 100 ||
|
||||
snapshot.Stats.StreamLimitRejects != 1 {
|
||||
t.Fatalf("unexpected stream limit snapshot: %+v", snapshot)
|
||||
}
|
||||
if err := first.Close(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user