You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
past rest creator to scenario to also be able to call createSessionRange
This commit is contained in:
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);
|
||||
|
Reference in New Issue
Block a user