File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
core/src/test/scala/integration/kafka/api Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1938,8 +1938,13 @@ class PlaintextAdminIntegrationTest extends BaseAdminIntegrationTest {
1938
1938
// Test that we can get information about the test consumer group.
1939
1939
assertTrue(describeWithFakeGroupResult.describedGroups().containsKey(testGroupId))
1940
1940
var testGroupDescription = describeWithFakeGroupResult.describedGroups().get(testGroupId).get()
1941
- assertEquals(groupType == GroupType .CLASSIC , testGroupDescription.groupEpoch.isEmpty)
1942
- assertEquals(groupType == GroupType .CLASSIC , testGroupDescription.targetAssignmentEpoch.isEmpty)
1941
+ if (groupType == GroupType .CLASSIC ) {
1942
+ assertTrue(testGroupDescription.groupEpoch.isEmpty)
1943
+ assertTrue(testGroupDescription.targetAssignmentEpoch.isEmpty)
1944
+ } else {
1945
+ assertEquals(Optional .of(3 ), testGroupDescription.groupEpoch)
1946
+ assertEquals(Optional .of(3 ), testGroupDescription.targetAssignmentEpoch)
1947
+ }
1943
1948
1944
1949
assertEquals(testGroupId, testGroupDescription.groupId())
1945
1950
assertFalse(testGroupDescription.isSimpleConsumerGroup)
You can’t perform that action at this time.
0 commit comments