From 6d297ea0ac220abeb5efe705b28bbe42cb86265a Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Sat, 25 Jan 2020 08:01:51 -0800 Subject: [PATCH] Adjust waiting time in test. --- packages/html-manager/test/src/output_test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/html-manager/test/src/output_test.ts b/packages/html-manager/test/src/output_test.ts index 8e5d59ad7b..008cb7533c 100644 --- a/packages/html-manager/test/src/output_test.ts +++ b/packages/html-manager/test/src/output_test.ts @@ -131,9 +131,11 @@ describe('Output widget', function() { }; const model = await manager.new_model(modelCreate, modelState); await manager.display_view(manager.create_view(model), elt); - // Pause one more time to give the asynchronous output renderer time - // to render the widgets. - await Promise.resolve(); + + // Give the widget time to render + await new Promise(resolve => { + setTimeout(resolve, 20); + }); expect(elt.querySelectorAll('.slider').length).to.equal(1); });