summaryrefslogtreecommitdiff
path: root/cli/tests/unit/net_test.ts
diff options
context:
space:
mode:
authorPeter Evers <pevers90@gmail.com>2020-06-15 18:20:45 +0200
committerGitHub <noreply@github.com>2020-06-15 12:20:45 -0400
commitfc850b11e5ef760278363b7a35c5a48102d919c3 (patch)
tree94e97f06ce1a87539c63798553bb2cf35e11a09d /cli/tests/unit/net_test.ts
parent9e8ecedfea44ee0c76a48d29e166d05ae01ec49e (diff)
unixpacket should also return byte length on send (#6291)
Diffstat (limited to 'cli/tests/unit/net_test.ts')
-rw-r--r--cli/tests/unit/net_test.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tests/unit/net_test.ts b/cli/tests/unit/net_test.ts
index 9228315d8..bd0e489b5 100644
--- a/cli/tests/unit/net_test.ts
+++ b/cli/tests/unit/net_test.ts
@@ -290,7 +290,8 @@ unitTest(
assertEquals(bob.addr.path, filePath);
const sent = new Uint8Array([1, 2, 3]);
- await alice.send(sent, bob.addr);
+ const byteLength = await alice.send(sent, bob.addr);
+ assertEquals(byteLength, 3);
const [recvd, remote] = await bob.receive();
assert(remote.transport === "unixpacket");