Skip to content

Commit

Permalink
Fix gRPC test to use EndVector without specifying the length. (#6646)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhofour authored May 17, 2021
1 parent 72730ec commit f1884c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grpc/tests/grpctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f1884c6

Please sign in to comment.