Report VPN fabric batch fanout
This commit is contained in:
@@ -316,9 +316,17 @@ func TestFabricSessionPacketTransportSplitsMixedBatchByStream(t *testing.T) {
|
||||
t.Fatalf("unexpected stream/class split: %+v", sender.frames)
|
||||
}
|
||||
snapshot := transport.Snapshot()
|
||||
if snapshot["send_stream_count"] != 3 || snapshot["send_class_count"] != 2 {
|
||||
if snapshot["send_stream_count"] != 3 ||
|
||||
snapshot["send_class_count"] != 2 ||
|
||||
snapshot["split_batch_count"] != uint64(1) ||
|
||||
snapshot["last_batch_frame_count"] != uint64(3) ||
|
||||
snapshot["max_batch_frame_count"] != uint64(3) {
|
||||
t.Fatalf("unexpected mixed-batch shard summary: %+v", snapshot)
|
||||
}
|
||||
packetsByStream := snapshot["send_packets_by_stream_id"].(map[string]uint64)
|
||||
if packetsByStream["801"] != 1 || packetsByStream["901"] != 1 || packetsByStream["902"] != 1 {
|
||||
t.Fatalf("unexpected packets by stream: %+v", packetsByStream)
|
||||
}
|
||||
}
|
||||
|
||||
func TestFabricSessionPacketTransportClosesAllStreamShards(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user