-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Intermittent test failure in Throttling pattern #643
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
Comments
Ping @rastdeepanshu |
@iluwatar i'll take a look. |
@rastdeepanshu it still sometimes fails, will you try to solve it? |
@iluwatar I'll take a look. |
@rastdeepanshu any progress? |
This was referenced Mar 11, 2018
Merged
iluwatar
added a commit
that referenced
this issue
Mar 31, 2018
Flaky test disabled in 17ea0b1. Still needs to be fixed. |
christophercolumbusdog
added a commit
to christophercolumbusdog/java-design-patterns
that referenced
this issue
May 26, 2018
iluwatar
added a commit
that referenced
this issue
May 27, 2018
#643 Fix flaky tests for throttling pattern
Unfortunately the fix did not work. See https://api.travis-ci.org/v3/job/384940670/log.txt. Reopening this issue. |
npathai
added a commit
that referenced
this issue
Oct 15, 2018
…allsCount. Because AppTest was executed before B2BServiceTest, it scheduled 1 sec timer using ThrottleTimerImpl class. While resetting it used that global CallCount class reset() method, which reset all counters. So that causes thread safety issue because of unintended sharing of application state between test cases, which is not a good practice.
1 task
iluwatar
pushed a commit
that referenced
this issue
Oct 21, 2018
) * Resolves #643, test cases failed due to presence of global state in CallsCount. Because AppTest was executed before B2BServiceTest, it scheduled 1 sec timer using ThrottleTimerImpl class. While resetting it used that global CallCount class reset() method, which reset all counters. So that causes thread safety issue because of unintended sharing of application state between test cases, which is not a good practice. * Updated class diagram png and added UCLS file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://travis-ci.org/iluwatar/java-design-patterns/builds/278878833
The text was updated successfully, but these errors were encountered: