Skip to content

Commit

Permalink
Adjust waiting time in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Jan 25, 2020
1 parent 3ed2f44 commit 0e65d6b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/html-manager/test/src/output_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 0e65d6b

Please sign in to comment.