1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 15:02:19 +00:00

Enable web server during tests

This commit is contained in:
Alexandre Iooss 2020-10-09 22:20:35 +02:00
parent 7ae82656a4
commit 0a0e8330f3
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02

View File

@ -13,7 +13,7 @@ func TestHTTPServe(t *testing.T) {
t.Errorf("Failed to load templates: %v", err)
}
go Serve(nil, nil, &Options{ListenAddress: "127.0.0.1:8081"})
go Serve(nil, nil, &Options{Enabled: true, ListenAddress: "127.0.0.1:8081"})
// Sleep 1 second to ensure that the web server is running, to avoid fails because the request came too early
time.Sleep(1000000000)