past rest creator to scenario to also be able to call createSessionRange

This commit is contained in:
Bruno Windels 2018-09-11 18:32:18 +02:00
parent abc7c4c3ac
commit 3db32c93d4

View file

@ -49,10 +49,6 @@ async function runTests() {
__dirname
);
function createRestSession(username, password) {
return restCreator.createSession(username, password);
}
async function createSession(username) {
const session = await RiotSession.create(username, options, program.riotUrl, hsUrl);
sessions.push(session);
@ -61,7 +57,7 @@ async function runTests() {
let failure = false;
try {
await scenario(createSession, createRestSession);
await scenario(createSession, restCreator);
} catch(err) {
failure = true;
console.log('failure: ', err);