-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stress test to use fault injection with d2c #1044
Conversation
} | ||
|
||
// Top-level task for limiting the length of the test. This task just sleeps | ||
// until the time elapses and then raises a sting to actually end the task. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sting? fancy dancy CS term. #Resolved
}; | ||
} | ||
|
||
async run(): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two with the same name? #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
different class.
): Promise<void> { | ||
while (!this.done) { | ||
await func(); | ||
const interval = Math.floor(Math.random() * (maxInterval - minInterval + 1)) + minInterval; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to seed the random generator with a fixed constant so that we get the same random intervals on every run? #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The node Math.random generator is not seedable. Other RNGs exist that are seedable, but I don't want to add that right now. If we want repeatability later, we can add that.
No description provided.