rove/cmd/rove-server/integration_test.go

20 lines
317 B
Go
Raw Normal View History

2020-05-29 22:56:21 +01:00
// +build integration
2020-05-29 23:05:16 +01:00
2020-05-29 22:56:21 +01:00
package main
2020-05-29 23:05:16 +01:00
import (
"testing"
"github.com/mdiluz/rove/pkg/rove"
)
2020-05-29 22:56:21 +01:00
var serverUrl = "http://localhost:8080"
func TestServerStatus(t *testing.T) {
2020-05-29 23:05:16 +01:00
conn := rove.NewConnection(serverUrl)
status := conn.Status()
if !status.Ready {
t.Error("Server did not return that it was ready")
}
2020-05-29 22:56:21 +01:00
}