Skip to content

Commit 1543318

Browse files
committed
fix
1 parent 0e23672 commit 1543318

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

modeling-cmds/src/websocket.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -946,21 +946,21 @@ mod tests {
946946
fn serialize_websocket_metrics() {
947947
let actual = WebSocketRequest::MetricsResponse {
948948
metrics: Box::new(ClientMetrics {
949-
rtc_frames_dropped: 1,
950-
rtc_frames_decoded: 2,
951-
rtc_frames_per_second: 3,
952-
rtc_frames_received: 4,
953-
rtc_freeze_count: 5,
954-
rtc_jitter_sec: 6.7,
955-
rtc_keyframes_decoded: 8,
956-
rtc_total_freezes_duration_sec: 9.1,
957-
rtc_frame_height: 100,
958-
rtc_frame_width: 100,
959-
rtc_packets_lost: 0,
960-
rtc_pli_count: 0,
961-
rtc_pause_count: 0,
962-
rtc_total_pauses_duration_sec: 0.0,
963-
rtc_stun_rtt_sec: 0.005,
949+
rtc_frames_dropped: Some(1),
950+
rtc_frames_decoded: Some(2),
951+
rtc_frames_per_second: Some(3),
952+
rtc_frames_received: Some(4),
953+
rtc_freeze_count: Some(5),
954+
rtc_jitter_sec: Some(6.7),
955+
rtc_keyframes_decoded: Some(8),
956+
rtc_total_freezes_duration_sec: Some(9.1),
957+
rtc_frame_height: Some(100),
958+
rtc_frame_width: Some(100),
959+
rtc_packets_lost: Some(0),
960+
rtc_pli_count: Some(0),
961+
rtc_pause_count: Some(0),
962+
rtc_total_pauses_duration_sec: Some(0.0),
963+
rtc_stun_rtt_sec: Some(0.005),
964964
}),
965965
};
966966
let expected = serde_json::json!({

0 commit comments

Comments
 (0)