Add an integration test

This commit is contained in:
Marc Di Luzio 2020-05-29 23:05:16 +01:00
parent 60cbf8b8d0
commit a6d86c2581

View file

@ -1,10 +1,19 @@
// +build integration
package main
import "testing"
import (
"testing"
"github.com/mdiluz/rove/pkg/rove"
)
var serverUrl = "http://localhost:8080"
func TestServerStatus(t *testing.T) {
conn := rove.NewConnection(serverUrl)
status := conn.Status()
if !status.Ready {
t.Error("Server did not return that it was ready")
}
}