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

This commit is contained in:
Bjørn Erik Pedersen 2018-07-18 00:35:42 +02:00
parent d741064beb
commit a4c513caeb
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -54,7 +54,7 @@ func TestServer(t *testing.T) {
// There is no way to know exactly when the server is ready for connections. // 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 // We could improve by something like https://golang.org/pkg/net/http/httptest/#Server
// But for now, let us sleep and pray! // 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/") resp, err := http.Get("http://localhost:1331/")
assert.NoError(err) assert.NoError(err)