-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[test] fix flaky test in CI #12017
[test] fix flaky test in CI #12017
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #12017 +/- ##
============================================
- Coverage 38.68% 38.66% -0.02%
+ Complexity 4050 4009 -41
============================================
Files 999 1002 +3
Lines 36728 37213 +485
Branches 4276 4247 -29
============================================
+ Hits 14208 14390 +182
- Misses 20896 21190 +294
- Partials 1624 1633 +9
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
5bba15a
to
0dd4d23
Compare
@@ -0,0 +1 @@ | |||
mock-maker-inline |
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.
Add this to mock finial class, according to https://github.com/mockito/mockito/wiki/What%27s-new-in-Mockito-2#mock-the-unmockable-opt-in-mocking-of-final-classesmethods
paramsMap.put(HttpAlertConstants.NAME_REQUEST_TYPE, "POST"); | ||
paramsMap.put(HttpAlertConstants.NAME_HEADER_PARAMS, "{\"Content-Type\":\"application/json\"}"); | ||
paramsMap.put(HttpAlertConstants.NAME_BODY_PARAMS, "{\"number\":\"13457654323\"}"); |
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.
remove some sensitive data in UT
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.
@EricGao888 @SbloodyS want to double check?
1dfffcd
to
df71d5b
Compare
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.
+1
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.
LGTM, thanks
SonarCloud Quality Gate failed. |
thanks all |
com.github.dockerjava.api.exception.ConflictException: Status 409: {"message":"Container 1f0ff7959eb4d1a78a7ba51670c71c438c47d8ec666132fceaa75e94cfa2e2ed is not running"}
or container can not start)