Open MichaelErmer opened 10 months ago
This is the expected functionality. The reason is, that the auto aliases function executes with a little delay to wait for all services should be started. In the case of a monolith, it looks like no reason to wait, but in a multi-node environment, if API gateway started, it doesn't mean all other services are loaded.
For tests, you should add a delay after the broker started, or set the debounceTime
to zero in API gateway settings.
If a API gateway has a configuration using autoAliases, the service will be marker as "ready" (started) even if the routes are not registered yet:
If this syntax is used, it works as intended:
this test will randomly fail for the first case: