You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
wait for the message to be sent
This commit is contained in:
6
start.js
6
start.js
@ -26,6 +26,8 @@ program
|
||||
.option('--riot-url [url]', "riot url to test", "http://localhost:5000")
|
||||
.parse(process.argv);
|
||||
|
||||
const hsUrl = 'http://localhost:5005';
|
||||
|
||||
async function runTests() {
|
||||
let sessions = [];
|
||||
console.log("running tests ...");
|
||||
@ -43,7 +45,7 @@ async function runTests() {
|
||||
|
||||
const restCreator = new RestSessionCreator(
|
||||
'synapse/installations/consent',
|
||||
'http://localhost:5005',
|
||||
hsUrl,
|
||||
__dirname
|
||||
);
|
||||
|
||||
@ -52,7 +54,7 @@ async function runTests() {
|
||||
}
|
||||
|
||||
async function createSession(username) {
|
||||
const session = await RiotSession.create(username, options, program.riotUrl);
|
||||
const session = await RiotSession.create(username, options, program.riotUrl, hsUrl);
|
||||
sessions.push(session);
|
||||
return session;
|
||||
}
|
||||
|
Reference in New Issue
Block a user