Skip to content

Commit dd82f2f

Browse files
committed
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
1 parent bf00334 commit dd82f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integration/bazel/src/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export class AppComponent {
1515
constructor(private http: HttpClient) {}
1616

1717
time$: Observable<string> =
18-
this.http.get('http://worldclockapi.com/api/json/pst/now')
19-
.pipe(map((result: any) => result.currentDateTime), startWith(['...']));
18+
this.http.get('http://worldtimeapi.org/api/timezone/America/Los_Angeles.json')
19+
.pipe(map((result: any) => result.datetime), startWith(['...']));
2020
}

0 commit comments

Comments
 (0)