diff --git a/components/tag/__tests__/index.test.js b/components/tag/__tests__/index.test.js index fb7d4f1a0483..64152d6374ff 100644 --- a/components/tag/__tests__/index.test.js +++ b/components/tag/__tests__/index.test.js @@ -14,7 +14,7 @@ describe('Tag', () => { expect(wrapper.find('.ant-tag').length).toBe(1); wrapper.find('.anticon-cross').simulate('click'); expect(onClose).toBeCalled(); - await delay(500); + await delay(1000); wrapper.update(); expect(wrapper.find('.ant-tag').length).toBe(0); }); @@ -29,7 +29,7 @@ describe('Tag', () => { expect(wrapper.find('.anticon-cross').length).toBe(1); expect(wrapper.find('.ant-tag').length).toBe(1); wrapper.find('.anticon-cross').simulate('click'); - await delay(500); + await delay(1000); expect(wrapper.find('.ant-tag').length).toBe(1); }); });