fixed minor streaming nits

This commit is contained in:
Danny Coates 2018-06-25 10:57:52 -07:00
parent c157e4d31c
commit a4cf46c0eb
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
5 changed files with 36 additions and 65 deletions

View file

@ -17,14 +17,7 @@ describe('API', function() {
const meta = await keychain.encryptMetadata(metadata);
const verifierB64 = await keychain.authKeyB64();
const p = function() {};
const up = api.uploadWs(
enc.stream,
enc.streamInfo,
meta,
verifierB64,
keychain,
p
);
const up = api.uploadWs(enc.stream, enc.streamInfo, meta, verifierB64, p);
const result = await up.result;
assert.ok(result.url);
@ -38,14 +31,7 @@ describe('API', function() {
const meta = await keychain.encryptMetadata(metadata);
const verifierB64 = await keychain.authKeyB64();
const p = function() {};
const up = api.uploadWs(
enc.stream,
enc.streamInfo,
meta,
verifierB64,
keychain,
p
);
const up = api.uploadWs(enc.stream, enc.streamInfo, meta, verifierB64, p);
up.cancel();
try {
await up.result;