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

Update login action with Ember run loops #39

Merged
merged 1 commit into from
Dec 2, 2013
Merged

Update login action with Ember run loops #39

merged 1 commit into from
Dec 2, 2013

Conversation

kunerd
Copy link
Contributor

@kunerd kunerd commented Nov 28, 2013

Hi,
I'm currently working on an EmberJS app and I use the emper-simple-auth plug-in. Today I started testing with QUnit and as I tried to test the login action QUnit hang up on that test. I think it's similar to #35, but on another place.
So I added two Ember.run calls to prevent QUnit hang ups.

added Ember run-loops to prevent QUnit hang ups
@marcoow
Copy link
Member

marcoow commented Nov 28, 2013

This suggests that the Ember.run should be (if necessary at all) around the call to Ember.$.ajax.

@kunerd
Copy link
Contributor Author

kunerd commented Nov 28, 2013

That was my first try, but it didn't work. In this guide is also another post, with a solution similar to mine. I think the reason, that the all enclosing run didn't work is the promise.

marcoow added a commit that referenced this pull request Dec 2, 2013
Update login action with Ember run loops
@marcoow marcoow merged commit 4f5d8b1 into mainmatter:master Dec 2, 2013
@marcoow
Copy link
Member

marcoow commented Dec 2, 2013

You're right - it is actually necessary. It's a little hard to get that run loop thing so excuse my ignorance here... This also fixes @tonegarot's problem (#38).

marcoow pushed a commit that referenced this pull request Feb 8, 2018
…ry scenario (#39)

and use "npm run test:all" instead to test against all scenarios
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