94485: Fix initialization deadlock when backend is unavailable

When the REST server can't be found, `getEndpoint` errors out, no request gets sent, which causes `fetchRequest` to never emit.

Because of this the `checkTokenCookie$` effect would get deadlocked and initialization would never complete.
This commit is contained in:
Yury Bondarenko
2022-09-20 16:15:13 +02:00
parent 31167a3ce4
commit c844423fc3
2 changed files with 12 additions and 6 deletions

View File

@@ -111,7 +111,6 @@ describe(`AuthRequestService`, () => {
body: undefined,
options,
}));
expect((service as any).fetchRequest).toHaveBeenCalledWith(requestID);
});
});
});
@@ -151,7 +150,6 @@ describe(`AuthRequestService`, () => {
body: { content: 'something' },
options,
}));
expect((service as any).fetchRequest).toHaveBeenCalledWith(requestID);
});
});
});