Skip to content

Commit 148e085

Browse files
authored
Merge branch 'master' into master
2 parents 6f0f497 + e5cbe36 commit 148e085

File tree

3 files changed

+24
-43154
lines changed

3 files changed

+24
-43154
lines changed

components/modal/__tests__/modal.browser-test.jsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,10 @@ describe('SLDSModal: ', function () {
2828
appNode = null;
2929
});
3030

31-
afterEach((done) => {
32-
// We run into a race condition if we do not have this wait
33-
// with the changes to react-modal, we end up trying to set state
34-
// on an unmounted component
35-
setTimeout(() => {
36-
ReactDOM.unmountComponentAtNode(container);
37-
document.body.removeChild(container);
38-
container = null;
39-
done();
40-
}, 100);
31+
afterEach(() => {
32+
ReactDOM.unmountComponentAtNode(container);
33+
document.body.removeChild(container);
34+
container = null;
4135
});
4236

4337
const defaultProps = {

0 commit comments

Comments
 (0)