From 50b9c27dcb03278963a8915670d142f71723877e Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 3 Mar 2020 16:03:31 -0500 Subject: [PATCH] finalize one more test --- scripts/tests/test-rpc.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/tests/test-rpc.js b/scripts/tests/test-rpc.js index d33dd92e2..56d2ccb3b 100644 --- a/scripts/tests/test-rpc.js +++ b/scripts/tests/test-rpc.js @@ -429,14 +429,12 @@ nThen(function (w) { } })); }).nThen(function () { - // XXX RESTRICT alice should now be able to read oscar's mailbox metadata -/* alice.anonRpc.send('GET_METADATA', oscar.mailboxChannel, function (err, response) { - if (err) { - PROBLEM + var metadata = response && response[0]; + if (!metadata || !metadata.restricted || !metadata.channel) { + throw new Error("EXPECTED FULL ACCESS TO CHANNEL METADATA"); } }); -*/ }).nThen(function (w) { //throw new Error("boop"); // add alice as an owner of oscar's mailbox for some reason