Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make methods in crypto/algorithms async #519

Merged
merged 3 commits into from
Aug 9, 2017

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Aug 8, 2017

No description provided.

Make internal methods of megolm.js ready for asynchronous olmdevice
@richvdh richvdh force-pushed the rav/async_crypto/algorithms branch from 9c607e5 to d821082 Compare August 8, 2017 17:25
const deviceInfo = {};
mockCrypto.getStoredDevice.andReturn(deviceInfo);

const awaitEnsureSessions = new Promise((res, rej) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You never return this from the promise chain which is returned to the test framework, so this test isn't waiting for all the stuff inside here to run.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore me, indentation on this diff threw me.

@kegsay
Copy link
Member

kegsay commented Aug 9, 2017

LGTM

@richvdh richvdh merged commit d317c1f into develop Aug 9, 2017
@richvdh richvdh deleted the rav/async_crypto/algorithms branch August 9, 2017 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants