-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix DLP inspect tests to fail on timeout #3049
Fix DLP inspect tests to fail on timeout #3049
Conversation
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.
Please consider comments
} | ||
|
||
@Test | ||
public void testInspectDatastoreEntity() | ||
throws InterruptedException, ExecutionException, IOException { | ||
public void testInspectDatastoreEntity() throws Exception { |
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.
Why did you reduce the throws here?
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.
- It seemed unnecessarily verbose.
- I was trying to follow the guidance in https://engdoc.corp.google.com/eng/doc/devguide/java/practices/exceptions.md?cl=head#test_methods.
- Tests are currently inconsistent in how they handle this but given the above, I wanted to move towards the simpler
throws Exception
.
0f58e94
to
33a6701
Compare
Update DLP inspect tests to fail properly, instead of timing out after 15 minutes and passing.
Also remove some broken code that tried to cancel early.
Fixes internal bug b/158026949
pom.xml
parent set to latestshared-configuration
mvn -P lint clean verify
)Checkstyle
passing is required;Spotbugs
,ErrorProne
,PMD
, etc.ERROR
's are advisory only)