mirror of https://github.com/apache/kafka.git
MINOR: Bugfix in GroupMetadataManager.testShareGroupInitializeSuccess. (#19795)
Currently, we were asserting on records containing set using `assertEquals` which can fail intermittently. To fix the assertion has been replaced by `assertRecordEquals`. Reviewers: Andrew Schofield <aschofield@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
bbe27e65a3
commit
af4d048da6
|
@ -21714,7 +21714,8 @@ public class GroupMetadataManagerTest {
|
|||
CoordinatorRecord record = newShareGroupStatePartitionMetadataRecord(groupId, Map.of(), snapshotMetadataInitializeRecordMap, Map.of());
|
||||
|
||||
assertNull(result.response());
|
||||
assertEquals(List.of(record), result.records());
|
||||
assertEquals(1, result.records().size());
|
||||
assertRecordEquals(record, result.records().get(0));
|
||||
// Make sure the timeline map is not modified yet.
|
||||
assertEquals(snapshotMetadataInitializeRecordMap, context.groupMetadataManager.shareGroupStatePartitionMetadata().get(groupId).initializingTopics());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue