Skip to content

Commit f6b4d18

Browse files
committed
Reduce test length to avoid stack overflow on VS.
1 parent 411968d commit f6b4d18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/google/protobuf/util/internal/json_stream_parser_test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,15 +318,15 @@ TEST_F(JsonStreamParserTest, ObjectKeyTypes) {
318318
// - array containing array, object, values (true, false, null, num, string)
319319
TEST_F(JsonStreamParserTest, ArrayValues) {
320320
StringPiece str =
321-
"[true, false, null, 'a string', \"another string\", [22, -127, 45.3, "
321+
"[true, false, null, 'a', \"an\", [22, -127, 45.3, "
322322
"-1056.4, 11779497823553162765], {'key': true}]";
323323
for (int i = 0; i <= str.length(); ++i) {
324324
ow_.StartList("")
325325
->RenderBool("", true)
326326
->RenderBool("", false)
327327
->RenderNull("")
328-
->RenderString("", "a string")
329-
->RenderString("", "another string")
328+
->RenderString("", "a")
329+
->RenderString("", "an")
330330
->StartList("")
331331
->RenderUint64("", 22)
332332
->RenderInt64("", -127)

0 commit comments

Comments
 (0)