Tests[SendWithPriority]

This commit is contained in:
2022-11-30 21:39:14 +01:00
parent a7df476e79
commit 1ca09c16d3
7 changed files with 172 additions and 4 deletions

View File

@@ -102,6 +102,8 @@ func StartSimpleWebserver(t *testing.T) (*logic.Application, func()) {
stop := func() { app.Stop(); _ = os.Remove(dbfile) }
go func() { app.Run() }()
time.Sleep(100 * time.Millisecond)
time.Sleep(100 * time.Millisecond) // wait until http server is up
return app, stop
}