commands: Increase sleep in server teset to make it less shaky on Windows - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit a4c513caeb25ec210aa8bc4b65e239442d8cbb62
DIR parent d741064bebe2f4663a7ba12556dccc3dffe08629
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Wed, 18 Jul 2018 00:35:42 +0200
commands: Increase sleep in server teset to make it less shaky on Windows
Diffstat:
M commands/server_test.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/commands/server_test.go b/commands/server_test.go
@@ -54,7 +54,7 @@ func TestServer(t *testing.T) {
// There is no way to know exactly when the server is ready for connections.
// We could improve by something like https://golang.org/pkg/net/http/httptest/#Server
// But for now, let us sleep and pray!
- time.Sleep(2 * time.Second)
+ time.Sleep(3 * time.Second)
resp, err := http.Get("http://localhost:1331/")
assert.NoError(err)