From 0a0e8330f3963d06f52b6922f073e9b61f013bc9 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Fri, 9 Oct 2020 22:20:35 +0200 Subject: [PATCH] Enable web server during tests --- web/web_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/web_test.go b/web/web_test.go index 5c2d54f..cc0cbec 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -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)