Yilun Chong 7 лет назад
Родитель
Сommit
bd1224e7b6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      examples/list_people_test.go

+ 1 - 1
examples/list_people_test.go

@@ -34,7 +34,7 @@ func TestWritePersonWritesPerson(t *testing.T) {
 
 func TestListPeopleWritesList(t *testing.T) {
 	buf := new(bytes.Buffer)
-	in := pb.AddressBook{[]*pb.Person{
+	in := pb.AddressBook{People: []*pb.Person {
 		{
 			Name:  "John Doe",
 			Id:    101,