From c6164e3e2e02dde924c657f452d232fdaf1bbe55 Mon Sep 17 00:00:00 2001 From: Zdravko Branzov Date: Fri, 13 Sep 2019 13:21:14 +0300 Subject: [PATCH] chore: make tests-app-ng async pipe demo more precise --- .../app/list-view/async-pipe-template.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/tests-app-ng/app/list-view/async-pipe-template.component.ts b/e2e/tests-app-ng/app/list-view/async-pipe-template.component.ts index 7e33b639d..fab165dd4 100644 --- a/e2e/tests-app-ng/app/list-view/async-pipe-template.component.ts +++ b/e2e/tests-app-ng/app/list-view/async-pipe-template.component.ts @@ -43,10 +43,13 @@ export class ListViewAsyncPipeComponent { counter++; items.push(new DataItem(counter, "data item " + counter)); subscr.next(items); + if (counter == 11) { + clearInterval(intervalId); + } }, 1000); setTimeout(() => { clearInterval(intervalId); - }, 10000); + }, 11000); } }