Skip to content
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

Compute client waiting time without including testing framework time #54

Merged
merged 1 commit into from
Nov 19, 2023

Conversation

emichael
Copy link
Owner

@emichael emichael commented Jul 9, 2023

This commit adds a private field to RunState to track when the system under test was most recently stopped. Then, when checking ClientWorkers' maximum wait times, we use that time as the basis for computing the maximum wait time.

This is a modification of @wilcoxjay's original fix, but I think it's a little bit cleaner to not force every test to call a specific method before calling assertMaxWaitTimeLessThan.

@emichael emichael added the bug Something isn't working label Jul 9, 2023
@emichael
Copy link
Owner Author

emichael commented Jul 9, 2023

Fixes #48.

@emichael
Copy link
Owner Author

emichael commented Jul 9, 2023

This is totally untested. Will need to add some sort of testing later or at least verify by hand that this still works.

@wilcoxjay for some reason I can't add you as a reviewer, but what do you think?

@emichael
Copy link
Owner Author

emichael commented Jul 9, 2023

Replaces #50.

@wilcoxjay
Copy link
Contributor

Looks great! I like this approach a lot more.

@wilcoxjay
Copy link
Contributor

I ran into this problem again today. Can we merge this?

@emichael emichael force-pushed the feature/max-wait-time-computation branch from 2f9c3e8 to ca02b92 Compare November 19, 2023 22:16
This commit adds a private field to RunState to track when the system
under test was most recently stopped. Then, when checking ClientWorkers'
maximum wait times, we use that time as the basis for computing the
maximum wait time.

Co-authored-by: James Wilcox <[email protected]>
@emichael emichael force-pushed the feature/max-wait-time-computation branch from ca02b92 to 64e99a4 Compare November 19, 2023 22:28
@emichael emichael merged commit cc772f9 into master Nov 19, 2023
8 checks passed
@emichael emichael deleted the feature/max-wait-time-computation branch November 19, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't count invariant computation time against clients' wait times
2 participants