Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
m1a2st committed Nov 4, 2024
1 parent c8bfe21 commit e34799f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class ConsumerGroupHeartbeatRequestTest(cluster: ClusterInstance) {
@ClusterTest
def testConsumerGroupHeartbeatWithRegularExpression(): Unit = {
val raftCluster = cluster.asInstanceOf[RaftClusterInstance]
val admin = cluster.createAdminClient()
val admin = cluster.admin()

// Creates the __consumer_offsets topics because it won't be created automatically
// in this test because it does not use FindCoordinator API.
Expand Down Expand Up @@ -203,12 +203,13 @@ class ConsumerGroupHeartbeatRequestTest(cluster: ClusterInstance) {
assertNotNull(consumerGroupHeartbeatResponse.data.memberId)
assertEquals(1, consumerGroupHeartbeatResponse.data.memberEpoch)
assertEquals(new ConsumerGroupHeartbeatResponseData.Assignment(), consumerGroupHeartbeatResponse.data.assignment)
admin.close()
}

@ClusterTest
def testConsumerGroupHeartbeatWithInvalidRegularExpression(): Unit = {
val raftCluster = cluster.asInstanceOf[RaftClusterInstance]
val admin = cluster.createAdminClient()
val admin = cluster.admin()

// Creates the __consumer_offsets topics because it won't be created automatically
// in this test because it does not use FindCoordinator API.
Expand Down Expand Up @@ -241,6 +242,7 @@ class ConsumerGroupHeartbeatRequestTest(cluster: ClusterInstance) {

// Verify the response.
assertEquals(Errors.INVALID_REGULAR_EXPRESSION.code, consumerGroupHeartbeatResponse.data.errorCode)
admin.close()
}

@ClusterTest
Expand Down

0 comments on commit e34799f

Please sign in to comment.