Skip to content

Commit c6c7d91

Browse files
committed
test: fix flaky scroll tests
1 parent 3071ef3 commit c6c7d91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/minimap-element-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ describe('MinimapElement', () => {
837837
// wait until all animations run out
838838
waitsFor(() => {
839839
nextAnimationFrame !== noAnimationFrame && nextAnimationFrame()
840-
return editorElement.getScrollTop() >= 480
840+
return editorElement.getScrollTop() >= 470 // flaky
841841
})
842842
})
843843

@@ -870,7 +870,7 @@ describe('MinimapElement', () => {
870870
// wait until all animations run out
871871
waitsFor(() => {
872872
nextAnimationFrame !== noAnimationFrame && nextAnimationFrame()
873-
return editorElement.getScrollTop() >= 480
873+
return editorElement.getScrollTop() >= 470 //flaky
874874
})
875875
})
876876

0 commit comments

Comments
 (0)