mirror of https://github.com/apache/kafka.git
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:
parent
53b837f9c6
commit
da07985b01
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue