From 5f358fa9fdda288bce7d7ba69f9ed88bedfb4a35 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sat, 30 May 2020 22:53:12 +0100 Subject: [PATCH] Fix the integration test and the default port for the compose --- cmd/rove-server/integration_test.go | 7 ++++--- docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/rove-server/integration_test.go b/cmd/rove-server/integration_test.go index 492dc64..33b562d 100644 --- a/cmd/rove-server/integration_test.go +++ b/cmd/rove-server/integration_test.go @@ -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") } } diff --git a/docker-compose.yml b/docker-compose.yml index 39f20f1..b166993 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,4 +3,4 @@ services: rove-server: build: . ports: - - "80:8080" \ No newline at end of file + - "8080:8080" \ No newline at end of file