Add an integration test
This commit is contained in:
parent
60cbf8b8d0
commit
a6d86c2581
1 changed files with 11 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue