Skip to content

Commit

Permalink
HOTFIX: fix build error (apache#10796)
Browse files Browse the repository at this point in the history
Fix compile error in scala tests.

The compile error is:

```
[Error] /home/jenkins/jenkins-agent/workspace/Kafka_kafka-pr_PR-9229/core/src/test/scala/unit/kafka/server/metadata/BrokerMetadataListenerTest.scala:97: polymorphic expression cannot be instantiated to expected type;

[2021-05-29T02:34:50.308Z]  found   : [T]()T

[2021-05-29T02:34:50.308Z]  required: kafka.server.RequestLocal
```

This error happens only in scala 2.12

Reviewers: Bruno Cadonna <[email protected]>
  • Loading branch information
chia7712 authored May 31, 2021
1 parent 6b005b2 commit 6c9e27c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class BrokerMetadataListenerTest {

verify(groupCoordinator).handleDeletedPartitions(ArgumentMatchers.argThat[Seq[TopicPartition]] { partitions =>
partitions.toSet == partitionSet(topic, numPartitions)
}, any)
}, any())

val deleteImageCapture: ArgumentCaptor[MetadataImageBuilder] =
ArgumentCaptor.forClass(classOf[MetadataImageBuilder])
Expand Down

0 comments on commit 6c9e27c

Please sign in to comment.