Skip to content

Commit

Permalink
Add timeout to help flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Apr 16, 2021
1 parent c754f24 commit 9bd0dbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion products/jbrowse-web/src/tests/BasicLinearGenomeView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ describe('valid file tests', () => {
const { findByTestId, findByText } = render(
<JBrowse pluginManager={pluginManager} />,
)
const rubberBandComponent = await findByTestId('rubberBand_controls')
const rubberBandComponent = await findByTestId(
'rubberBand_controls',
{},
{ timeout: 10000 },
)

expect(state.session.views[0].bpPerPx).toEqual(0.05)
fireEvent.mouseDown(rubberBandComponent, { clientX: 100, clientY: 0 })
Expand Down

0 comments on commit 9bd0dbe

Please sign in to comment.