shithub: hugo

Download patch

ref: a4c513caeb25ec210aa8bc4b65e239442d8cbb62
parent: d741064bebe2f4663a7ba12556dccc3dffe08629
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Jul 17 20:35:42 EDT 2018

commands: Increase sleep in server teset to make it less shaky on Windows

--- a/commands/server_test.go
+++ b/commands/server_test.go
@@ -54,7 +54,7 @@
 	// 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)