File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -728,7 +728,7 @@ var suite = {
728
728
729
729
"protobuf.js issue 19" : function ( test ) {
730
730
// test that this issue is fixed: https://github.com/dcodeIO/ProtoBuf.js/issues/19
731
- var bb = new ByteBuffer ( 17 ) ;
731
+ var bb = new ByteBuffer ( 9 ) ; // Trigger resize to 18 in writeVarint64
732
732
bb . writeVarint32 ( 16 ) ;
733
733
bb . writeVarint32 ( 2 ) ;
734
734
bb . writeVarint32 ( 24 ) ;
@@ -737,7 +737,7 @@ var suite = {
737
737
bb . writeVarint64 ( ByteBuffer . Long . fromString ( "1368057600000" ) ) ;
738
738
bb . writeVarint32 ( 40 ) ;
739
739
bb . writeVarint64 ( ByteBuffer . Long . fromString ( "1235455123" ) ) ;
740
- test . equals ( bb . toHex ( 17 ) , ">10 02 18 00 20 80 B0 D9 B4 E8 27 28 93 99 8E CD 04<" ) ;
740
+ test . equals ( bb . toHex ( 18 ) , ">10 02 18 00 20 80 B0 D9 B4 E8 27 28 93 99 8E CD 04<00 " ) ;
741
741
test . done ( ) ;
742
742
} ,
743
743
You can’t perform that action at this time.
0 commit comments