From 930eeaf177a4c277f437f42314605ff8dc56fc82 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Fri, 28 Aug 2020 10:21:28 -0700 Subject: [PATCH] fix(bazel): fix integration test for bazel building (#38629) Update the API used to request a timestamp. The previous API we relied on for this test application, worldclockapi.com no longer serves times and simply 403s on all requests. This caused our test to timeout as the HTTP request did not handle a failure case. By moving to a new api, the HTTP request responds as expected and timeouts are corrected as there is not longer a pending microtask in the queue. PR Close #38629 --- integration/bazel/src/app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/bazel/src/app.component.ts b/integration/bazel/src/app.component.ts index 0801972313..6b0e7cc515 100644 --- a/integration/bazel/src/app.component.ts +++ b/integration/bazel/src/app.component.ts @@ -15,6 +15,6 @@ export class AppComponent { constructor(private http: HttpClient) {} time$: Observable = - this.http.get('http://worldclockapi.com/api/json/pst/now') - .pipe(map((result: any) => result.currentDateTime), startWith(['...'])); + this.http.get('http://worldtimeapi.org/api/timezone/America/Los_Angeles.json') + .pipe(map((result: any) => result.datetime), startWith(['...'])); }