mirror of https://github.com/grpc/grpc-node.git
replace usage of Buffer.from with Buffer.alloc
This commit is contained in:
parent
511f4249d1
commit
b1609a1311
|
|
@ -122,7 +122,7 @@ describe('Proto message bytes serialize and deserialize', function() {
|
|||
// This tests a bug that was fixed in Protobuf.js 6
|
||||
it.skip('should deserialize packed or unpacked repeated', function() {
|
||||
var expectedDeserialize = {
|
||||
bytes_field: Buffer.from(''),
|
||||
bytes_field: Buffer.alloc(''),
|
||||
repeated_field: [10]
|
||||
};
|
||||
var packedSerialized = Buffer.from([0x12, 0x01, 0x0a]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue