kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject [kafka] branch trunk updated: MINOR: Assert ExecutionException details in testCreatePartitions (#7017)
Date Mon, 01 Jul 2019 15:45:51 GMT
This is an automated email from the ASF dual-hosted git repository.

ijuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new da07985  MINOR: Assert ExecutionException details in testCreatePartitions (#7017)
da07985 is described below

commit da07985b0166c7048b7e92d54fbc33bea1d31da5
Author: Ismael Juma <ismael@juma.me.uk>
AuthorDate: Mon Jul 1 08:45:22 2019 -0700

    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>
---
 .../test/scala/integration/kafka/api/AdminClientIntegrationTest.scala    | 1 -
 1 file changed, 1 deletion(-)

diff --git a/core/src/test/scala/integration/kafka/api/AdminClientIntegrationTest.scala b/core/src/test/scala/integration/kafka/api/AdminClientIntegrationTest.scala
index 306bcb5..a8d317c 100644
--- a/core/src/test/scala/integration/kafka/api/AdminClientIntegrationTest.scala
+++ b/core/src/test/scala/integration/kafka/api/AdminClientIntegrationTest.scala
@@ -741,7 +741,6 @@ class AdminClientIntegrationTest extends IntegrationTestHarness with Logging
{
       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)
         // assert that the topic2 still has 3 partitions


Mime
View raw message