cleanup test local-url

This commit is contained in:
2022-12-14 17:02:18 +01:00
parent 203360e8b5
commit 0750bf1d8a
6 changed files with 42 additions and 118 deletions

View File

@@ -18,7 +18,7 @@ import (
type Void = struct{}
func StartSimpleWebserver(t *testing.T) (*logic.Application, func()) {
func StartSimpleWebserver(t *testing.T) (*logic.Application, string, func()) {
InitTests()
uuid2, _ := langext.NewHexUUID()
@@ -100,5 +100,5 @@ func StartSimpleWebserver(t *testing.T) (*logic.Application, func()) {
TestFailErr(t, err)
}
return app, stop
return app, "http://127.0.0.1:" + app.Port, stop
}