From 9bd0dbe94bb63ae8edd2b70b707dc9ce66aadd79 Mon Sep 17 00:00:00 2001 From: Colin Date: Fri, 16 Apr 2021 17:46:17 -0400 Subject: [PATCH] Add timeout to help flaky test --- .../jbrowse-web/src/tests/BasicLinearGenomeView.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/products/jbrowse-web/src/tests/BasicLinearGenomeView.test.js b/products/jbrowse-web/src/tests/BasicLinearGenomeView.test.js index 3082e39c61..b2db27efd7 100644 --- a/products/jbrowse-web/src/tests/BasicLinearGenomeView.test.js +++ b/products/jbrowse-web/src/tests/BasicLinearGenomeView.test.js @@ -88,7 +88,11 @@ describe('valid file tests', () => { const { findByTestId, findByText } = render( , ) - 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 })