Repository navigation
Fix flaky spec - #421
Fix flaky spec#421
Conversation
|
The appveyor build seems to always fail that test - perhaps testing on windows will yield a solution...? |
|
https://github.com/joefitzgerald/packer-windows (develop branch) + https://packer.io if you need a throwaway windows VM. |
|
Ok, i'll try it on windows tomorrow. Looks like it's not getting the main flaky spec. No idea why that extra space is there. |
|
So the flaky spec is failing because the actual position of the word is greater than the expected position of the word. Could this be because the width of the suggestion list is too wide, and consequently the marker is flipping from tail to head? |
|
The overlay no longer flips horizontally, it shifts to accommodate the window edges. If anything the number should be smaller, say if the window was too small to hold the suggestion list. But the number is larger. It's acting like a left panel (i.e. treeview) is showing up sometimes. It seems to always be greater by 77px. |
|
Ok, I think I've fixed it. Basically, I added a bunch of chars so the offset doesnt trigger the overlay window boundary checking code. |
|
Haha... that sounds hacky :) But yay! |
|
Yeah not ideal. It's a weird browser issue I think, only manifested in the specs. This doesnt need to consume my whole day, so going with the hacky fix. |
|
... And my local screenshot matches the AppVeyor build: https://ci.appveyor.com/project/joefitzgerald/autocomplete-plus/build/528 |
|
Ok, that's a different spec |
|
Oh nevermind, it's two different specs. The one that fails for me locally is the one you've been working on. The on that fails on AppVeyor was different. But they are both failing for the same reason. |
|
Tests pass on my VM now. There's something weird going on with the spec runner on Windows - randomly leaking path subscriptions: |
|
That error on deactivation is a huge indicator. Why cant it deactivate properly? |
|
Looks like Atom is holding onto something in the cache, preventing the cache from being moved. After forcibly killing Atom.exe, the error goes away but the deactivation issues persist: |
|
From OSX: |
|
Requires existential check on |
|
Still leaking paths... |
11fc373 to
b37018c
Compare
|
So you force pushed over the |
|
If you rebased, then we should be good: 17e892a has this. |
|
Yeah, I rebased on master. I remembered that commit come through, and it solved the deactivation issues for me. I didnt see your commit on here. |
|
All good. Still getting random path leakage. It's possible it's just "My Machine ™️" but if you see this come up in the AppVeyor build, it's a spec-helper issue on Windows. |
|
👍 to merge. |





Closes #399