Skip to content

Commit

Permalink
MINOR: Fix unrelated types comparison in MetadataRequestTest (apache#…
Browse files Browse the repository at this point in the history
…8195)

The type of `leaderId` was changed to `Optional` in a recent change.

Reviewers: Ismael Juma <[email protected]>
  • Loading branch information
chia7712 authored Feb 29, 2020
1 parent e0551ac commit 0df03a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class MetadataRequestTest extends BaseRequestTest {
val serverId = server.dataPlaneRequestProcessor.brokerId
val leaderId = partitionMetadata.leaderId
val replicaIds = partitionMetadata.replicaIds.asScala
serverId != leaderId && replicaIds.contains(serverId)
leaderId.isPresent && leaderId.get() != serverId && replicaIds.contains(serverId)
}.get
downNode.shutdown()

Expand Down

0 comments on commit 0df03a6

Please sign in to comment.