Report VPN fabric receive distribution
This commit is contained in:
@@ -432,6 +432,12 @@ func TestFabricSessionPacketTransportReceiveReadsPumpFrames(t *testing.T) {
|
||||
if len(packets) != 1 || string(packets[0]) != "request" {
|
||||
t.Fatalf("packets = %#v", packets)
|
||||
}
|
||||
snapshot := transport.Snapshot()
|
||||
framesByClass := snapshot["receive_frames_by_class"].(map[string]uint64)
|
||||
packetsByStream := snapshot["receive_packets_by_stream_id"].(map[string]uint64)
|
||||
if framesByClass[FabricTrafficClassBulk] != 1 || packetsByStream["711"] != 1 {
|
||||
t.Fatalf("unexpected receive counters: %+v", snapshot)
|
||||
}
|
||||
}
|
||||
|
||||
func TestFabricSessionPacketTransportIngressIgnoresOtherStreams(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user