mirror of https://github.com/vector-im/riot-web
past rest creator to scenario to also be able to call createSessionRange
parent
abc7c4c3ac
commit
3db32c93d4
6
start.js
6
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);
|
||||
|
|
Loading…
Reference in New Issue