Do not use deprecated Buffer constructor

This commit is contained in:
Daniel García Aubert
2018-11-07 15:06:38 +01:00
parent de47558628
commit d55dbe70d5
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ var testComparators = function() {
assert(copy1._gotCopyOutResponse, 'should have received CopyOutResponse')
assert(!copy1._remainder, 'Message with no additional data (len=Int4Len+0) should not leave a remainder')
}))
copy1.end(new Buffer([code.CopyOutResponse, 0x00, 0x00, 0x00, 0x04]));
copy1.end(Buffer.from([code.CopyOutResponse, 0x00, 0x00, 0x00, 0x04]));
}