Fix the integration test and the default port for the compose
This commit is contained in:
parent
3043409939
commit
5f358fa9fd
2 changed files with 5 additions and 4 deletions
|
@ -8,12 +8,13 @@ import (
|
||||||
"github.com/mdiluz/rove/pkg/rove"
|
"github.com/mdiluz/rove/pkg/rove"
|
||||||
)
|
)
|
||||||
|
|
||||||
var serverUrl = "http://localhost:8080"
|
var serverUrl = "localhost:8080"
|
||||||
|
|
||||||
func TestServerStatus(t *testing.T) {
|
func TestServerStatus(t *testing.T) {
|
||||||
conn := rove.NewConnection(serverUrl)
|
conn := rove.NewConnection(serverUrl)
|
||||||
status := conn.Status()
|
if status, err := conn.Status(); err != nil {
|
||||||
if !status.Ready {
|
t.Errorf("Status returned error: %s", err)
|
||||||
|
} else if !status.Ready {
|
||||||
t.Error("Server did not return that it was ready")
|
t.Error("Server did not return that it was ready")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,4 @@ services:
|
||||||
rove-server:
|
rove-server:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "80:8080"
|
- "8080:8080"
|
Loading…
Add table
Reference in a new issue