MINOR: Assert ExecutionException details in testCreatePartitions (#7017)

Due to the accidental duplication of `case e: ExecutionException`,
the verification code was not actually running.

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>, David Arthur <mumrah@gmail.com>
This commit is contained in:
Ismael Juma 2019-07-01 08:45:22 -07:00 committed by GitHub
parent 53b837f9c6
commit da07985b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -740,7 +740,6 @@ class AdminClientIntegrationTest extends IntegrationTestHarness with Logging {
try {
altered = alterResult.values.get(topic2).get
} catch {
case e: ExecutionException =>
case e: ExecutionException =>
assertTrue(e.getCause.isInstanceOf[InvalidPartitionsException])
assertEquals("Topic currently has 3 partitions, which is higher than the requested 2.", e.getCause.getMessage)