Skip to content

Commit a3c63ef

Browse files
authored
test: add env var for sleep in overflow test (#167)
Signed-off-by: shubham kumar <[email protected]>
1 parent 5ac77d2 commit a3c63ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

conformance_tests/tools/metrics/src/test_metric.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,14 @@ void run_ip_sampling_with_validation(
18471847
LOG_WARNING << "elapsed time for workload completion is too short";
18481848
}
18491849

1850+
const char *sleep_in_buffer_overflow_test_environment_variable =
1851+
std::getenv("LZT_METRICS_BUFFER_OVERFLOW_SLEEP_MS");
1852+
1853+
if (sleep_in_buffer_overflow_test_environment_variable != nullptr) {
1854+
uint32_t value = atoi(sleep_in_buffer_overflow_test_environment_variable);
1855+
std::this_thread::sleep_for(std::chrono::milliseconds(value));
1856+
}
1857+
18501858
size_t rawDataSize = 0;
18511859
std::vector<uint8_t> rawData;
18521860
rawDataSize = lzt::metric_streamer_read_data_size(metricStreamerHandle,

0 commit comments

Comments
 (0)