Skip to content

Commit 6514bc1

Browse files
committed
fix KITE charts and stats collection
1 parent 41451f0 commit 6514bc1

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

test/kite/configs/all.config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636
"meetingDuration": 5,
3737
"getStats": {
3838
"enabled": true,
39-
"statsCollectionTime": 5000,
39+
"statsCollectionTime": 10000,
4040
"statsCollectionInterval": 250,
41-
"peerConnections": ["window.component.state.peers[0]"],
41+
"peerConnections": ["[...window.component.state.peers.values()][0]"],
4242
"selectedStats": ["inbound-rtp", "outbound-rtp", "candidate-pair"]
4343
},
4444
"getCharts": {
4545
"enabled": true,
4646
"pathToGenerateChartsFile": "/generateCharts-min.js",
4747
"pathToChartBundleMin": "/chart.bundle.min.js",
48-
"chartsStatsInterval": 7000,
49-
"peerConnections": ["window.component.state.peers[0]"],
48+
"chartsStatsInterval": 500,
49+
"peerConnections": ["[...window.component.state.peers.values()][0]"],
5050
"config": {
5151
"width": 500,
5252
"height": 500,

test/kite/src/main/java/com/ruddell/kite/RnWebRtcWebShimTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ protected void populateTestSteps(TestRunner runner) {
6060
runner.addStep(new CustomScreenshotStep(runner, isBroadcaster));
6161
}
6262

63-
// // disabling, we wait for the Charts step as well
64-
// if (this.meetingDuration > 0) {
65-
// runner.addStep(new StayInMeetingStep(runner, meetingDuration));
66-
// }
63+
if (this.meetingDuration > 0) {
64+
runner.addStep(new StayInMeetingStep(runner, meetingDuration));
65+
}
6766

6867
if (this.allureCharts) {
6968
runner.addStep(new StopGetStatsStep(runner));

0 commit comments

Comments
 (0)