translator: fix memory in tests

This commit is contained in:
Alexey Stepanov
2016-08-18 13:23:08 +03:00
parent 0832c86c00
commit a6e2b04fa0
2 changed files with 5 additions and 3 deletions
@@ -1213,7 +1213,8 @@ fun generateRandomMessage(): MessageRepeatedVarints {
fun testRepVarints(): Int {
var i = 0
val testRuns = 100
while (i < 100) {
while (i < testRuns) {
println(i)
val msg = generateRandomMessage()
if (checkRepSerializationIdentity(msg) == 1) {
return 1
@@ -488,8 +488,9 @@ fun generateRandomMessage(): MessageRepeatedZigZag {
fun testRepZigZag(): Int {
var i = 0
val testRuns = 100
while (i < 100) {
val testRuns = 8
while (i < testRuns) {
println(i)
val msg = generateRandomMessage()
if (checkRepZZSerializationIdentity(msg) == 1) {
return 1