start e2e testing

This commit is contained in:
Scott Bell
2024-12-17 12:31:35 +01:00
parent 36d31973fe
commit 72ff0bced6
3 changed files with 64 additions and 3 deletions

View File

@ -34,8 +34,7 @@ class EventTelemetryProvider {
generateData(firstObservedTime, count, startTime, duration, name) {
const millisecondsSinceStart = startTime - firstObservedTime;
const randomFewSeconds = Math.floor(Math.random() * 1000);
const utc = startTime + count + randomFewSeconds * duration;
const utc = startTime + count * duration;
const ind = count % messages.length;
const message = messages[ind] + ' - [' + millisecondsSinceStart + ']';
// pick a random severity level + 1 for an undefined level so we can do nominal