Skip to content

Commit 49a3574

Browse files
committed
fix: Enhance streamer tests
Moved streamer open calls just before execute_command_lists. Removed zeEventQueryStatus() check from streamer tests since they have a dedicated test. Adjusted notifyNReport and samplingPeriod values to minimize the test runtimes. Added a new read function in harness to read specific number of reports. Related-To: VLCLJ-2365 Signed-off-by: shubham kumar <[email protected]>
1 parent b3aeff2 commit 49a3574

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

conformance_tests/tools/metrics/src/test_metric.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,9 +1217,7 @@ TEST_F(
12171217
zetMetricStreamerTest,
12181218
GivenValidMetricGroupWhenTimerBasedStreamerIsCreatedThenExpectStreamerToSucceed) {
12191219

1220-
/* The time in seconds for the buffer to overflow would be 2 * (notifyEveryNReports * (samplingPeriod/nanoSecToSeconds))
1221-
* For this test it will be 512 seconds which ensure this limit is never likely to hit even on the slowest of platform
1222-
*/
1220+
// The time in seconds for the buffer to overflow would be 2 * (notifyEveryNReports * (samplingPeriod/nanoSecToSeconds)) for this test it will be 512 seconds
12231221
uint32_t notifyEveryNReports = 256;
12241222
uint32_t samplingPeriod = 1000000000;
12251223
for (auto device : devices) {
@@ -1305,7 +1303,6 @@ TEST_F(
13051303

13061304
/* The time in seconds for the buffer to overflow would be 2 * (notifyEveryNReports * (samplingPeriod/nanoSecToSeconds))
13071305
* For this test it will be 9 seconds. The execution time between metric_streamer_open_for_device and synchronize observed on average is less than 50% of this
1308-
* which ensure this limit is never likely to hit even on the slowest of platform
13091306
*/
13101307
uint32_t notifyEveryNReports = 4500;
13111308
for (auto device : devices) {
@@ -1408,7 +1405,6 @@ TEST_F(
14081405

14091406
/* The time in seconds for the buffer to overflow would be 2 * (notifyEveryNReports * (samplingPeriod/nanoSecToSeconds))
14101407
* For this test it will be 9 seconds. The execution time between metric_streamer_open_for_device and synchronize observed on average is less than 50% of this
1411-
* which ensure this limit is never likely to hit even on the slowest of platform
14121408
*/
14131409
uint32_t notifyEveryNReports = 4500;
14141410
for (auto device : devices) {

0 commit comments

Comments
 (0)