Skip to content

Commit 2b2347d

Browse files
committed
Fix a randomly failing test.
1 parent dd4fccc commit 2b2347d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/app/tests/snippets.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ describe('Snippets', () => {
3838
});
3939

4040
// TODO: Skip list-view test until karma test launcher double navigate bug is fixed
41-
(IS_IOS ? it.skip : it)("Icon-font snippets can be loaded", () => {
42-
return testApp.loadComponent(IconFontComponent).then((componentRef) => {
41+
(IS_IOS ? it.skip : it)("Icon-font snippets can be loaded", (done) => {
42+
testApp.loadComponent(IconFontComponent).then((componentRef) => {
4343
const componentInstance = componentRef.instance;
4444
assert.instanceOf(componentInstance, IconFontComponent);
45+
//Works around a "dehydrated change detector" exception.
46+
setTimeout(done, 10);
4547
});
4648
});
47-
})
49+
})

0 commit comments

Comments
 (0)