From 3db32c93d427ae082cf625d17d02109647f5e946 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 11 Sep 2018 18:32:18 +0200 Subject: [PATCH] past rest creator to scenario to also be able to call createSessionRange --- start.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/start.js b/start.js index 62ec29d6a1..3367787905 100644 --- a/start.js +++ b/start.js @@ -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);