Wissance / Ferrum

Simple Go OpenId authorization server with Keycloak compatible API
https://wissance.github.io/Ferrum/
Apache License 2.0
5 stars 4 forks source link

Waiting for the application to start #68

Open awsoremod opened 1 month ago

awsoremod commented 1 month ago

Right now there are fail tests on linux because the request to create the token comes before the application runs.

CreateAppWithData(...)
app.Init()
app.Start()
time.Sleep(100 * time.Millisecond)
issueNewToken(...)

With time.Sleep() specified, the tests pass. Need to think about how to expect the application to run to make it easier to launch from tests.

stdstring commented 1 month ago

It seems that you may use service channels (similar to service channels in lambda service) for this purposes