Fix RequestLogCollectorJob sometimes not properly shutting down

This commit is contained in:
2023-05-28 12:31:14 +02:00
parent 624c613bd1
commit efaad3f97c
5 changed files with 26 additions and 14 deletions

View File

@@ -130,8 +130,10 @@ func StartSimpleWebserver(t *testing.T) (*logic.Application, string, func()) {
}
stop := func() {
t.Logf("Stopping App")
app.Stop()
_ = app.IsRunning.WaitWithTimeout(5*time.Second, false)
t.Logf("Stopped App")
_ = os.Remove(dbfile1)
_ = os.Remove(dbfile2)
_ = os.Remove(dbfile3)