atom / encoding-selector

Pick an encoding for the current editor
MIT License
21 stars 26 forks source link

Unflake a test #55

Closed winstliu closed 7 years ago

winstliu commented 7 years ago

Requirements

Description of the Change

This approach works, but I'm not sure if it's the best solution, because I don't know what atom.views.updateDocument is for. Removing that function seemed to fix the flake as well.

Alternate Designs

See above.

Benefits

One less flake.

Applicable Issues

Fixes #54

winstliu commented 7 years ago

Closing in favor of #56.

maxbrunsfeld commented 7 years ago

Oh, sorry for not seeing this @50Wliu 😬 ; this would have been fine too.

In any case, I did a little extra work to get rid of the polling and use await, so it wasn't just a total repeat of your work.

winstliu commented 7 years ago

Yeah your solution is much cleaner, and it converts things to JS :sparkles:.