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
This commit is contained in:
Joey Perrott 2020-08-28 10:21:28 -07:00
parent 2dd29fbae7
commit 930eeaf177
1 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,6 @@ export class AppComponent {
constructor(private http: HttpClient) {}
time$: Observable<string> =
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(['...']));
}