浏览代码

Fix flaky test

Don't do encode/decode testing with multi-value maps, the order is not
predictable.
Evan Huus 10 年之前
父节点
当前提交
1ad3d11a6a
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      consumer_group_members_test.go

+ 1 - 5
consumer_group_members_test.go

@@ -16,13 +16,10 @@ var (
 	}
 	groupMemberAssignment = []byte{
 		0, 1, // Version
-		0, 0, 0, 2, // Topic array length
+		0, 0, 0, 1, // Topic array length
 		0, 3, 'o', 'n', 'e', // Topic one
 		0, 0, 0, 3, // Topic one, partition array length
 		0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 4, // 0, 2, 4
-		0, 3, 't', 'w', 'o', // Topic two
-		0, 0, 0, 2, // Topic two, partition array length
-		0, 0, 0, 1, 0, 0, 0, 3, // 1, 3
 		0, 0, 0, 3, 0x01, 0x02, 0x03, // Userdata
 	}
 )
@@ -55,7 +52,6 @@ func TestConsumerGroupMemberAssignment(t *testing.T) {
 		Version: 1,
 		Topics: map[string][]int32{
 			"one": []int32{0, 2, 4},
-			"two": []int32{1, 3},
 		},
 		UserData: []byte{0x01, 0x02, 0x03},
 	}