Fix the integration test and the default port for the compose

This commit is contained in:
Marc Di Luzio 2020-05-30 22:53:12 +01:00
parent 3043409939
commit 5f358fa9fd
2 changed files with 5 additions and 4 deletions

View file

@ -8,12 +8,13 @@ import (
"github.com/mdiluz/rove/pkg/rove"
)
var serverUrl = "http://localhost:8080"
var serverUrl = "localhost:8080"
func TestServerStatus(t *testing.T) {
conn := rove.NewConnection(serverUrl)
status := conn.Status()
if !status.Ready {
if status, err := conn.Status(); err != nil {
t.Errorf("Status returned error: %s", err)
} else if !status.Ready {
t.Error("Server did not return that it was ready")
}
}

View file

@ -3,4 +3,4 @@ services:
rove-server:
build: .
ports:
- "80:8080"
- "8080:8080"