Fix gRPC test to use EndVector without specifying the length. (#6646)

This commit is contained in:
Richard A Hofer 2021-05-17 14:27:49 -04:00 committed by GitHub
parent 72730ecd8a
commit f1884c66f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,16 +126,16 @@ def run():
Monster.MonsterStartInventoryVector(b, len(test_inventory))
for i in range(0, len(test_inventory)):
b.PrependByte(test_inventory[i])
inv = b.EndVector(len(test_inventory))
inv = b.EndVector()
Monster.MonsterStartTest4Vector(b, 2)
Test.CreateTest(b, 10, 20)
Test.CreateTest(b, 30, 40)
test4 = b.EndVector(2)
test4 = b.EndVector()
Monster.MonsterStartTestarrayofstringVector(b, 1)
b.PrependUOffsetTRelative(test1)
test_array_of_string = b.EndVector(1)
test_array_of_string = b.EndVector()
Monster.MonsterStart(b)