Skip to content

Commit 8a787be

Browse files
author
Zdravko
authored
Merge pull request NativeScript#1981 from NativeScript/zbranzov/tests-changes
chore: make tests-app-ng async pipe demo more precise
2 parents 413cec2 + c6164e3 commit 8a787be

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

e2e/tests-app-ng/app/list-view/async-pipe-template.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ export class ListViewAsyncPipeComponent {
4343
counter++;
4444
items.push(new DataItem(counter, "data item " + counter));
4545
subscr.next(items);
46+
if (counter == 11) {
47+
clearInterval(intervalId);
48+
}
4649
}, 1000);
4750

4851
setTimeout(() => {
4952
clearInterval(intervalId);
50-
}, 10000);
53+
}, 11000);
5154
}
5255
}

0 commit comments

Comments
 (0)