-
Notifications
You must be signed in to change notification settings - Fork 79
Unit test for fluent-react withLocalization fails inconsistently #379
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
Comments
My suggestion would be to add This seems to fix it. Is it ok to force-update the component or should the test also assert that A similar test in
|
Thanks for the investigation, @flut1 :) I opened #384 to add The tests will need to be reviewed anyways when I start working on #182, which I hope is soon. |
I noticed that my pull request #378 was failing in Travis on the following test:
Upon further investigation, it seems like this also fails on the master branch, but not consistently. If I run all tests for fluent-react, they seem to sometimes succeed, and if I run this test in isolation it seems to always succeed.
I can think of 2 possible reasons:
l10n.setBundles([newBundle]);
causes a force-update inWithLocalization
, but maybe React doesn't flush these changes synchronously.The text was updated successfully, but these errors were encountered: