open-nomad/api/status_test.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
383 B
Go
Raw Normal View History

2015-09-12 00:02:56 +00:00
package api
import (
"testing"
"github.com/hashicorp/nomad/api/internal/testutil"
"github.com/shoenig/test/must"
2015-09-12 00:02:56 +00:00
)
func TestStatus_Leader(t *testing.T) {
testutil.Parallel(t)
2015-09-12 00:02:56 +00:00
c, s := makeClient(t, nil, nil)
defer s.Stop()
status := c.Status()
// Query for leader status should return a result
out, err := status.Leader()
must.NoError(t, err)
must.NotEq(t, "", out)
2015-09-12 00:02:56 +00:00
}