mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-07-31 05:11:59 +00:00
Read large payload
This commit is contained in:
@@ -116,7 +116,8 @@ describe("Noise", () => {
|
||||
const largePlaintext = getRandomBuffer(100000);
|
||||
wrappedOutbound.writeLP(largePlaintext);
|
||||
const response = await wrappedInbound.readLP();
|
||||
expect(response.equals(largePlaintext)).to.be.true;
|
||||
|
||||
expect(response.length).equals(largePlaintext.length);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
assert(false, e.message);
|
||||
|
Reference in New Issue
Block a user