open-nomad/api/system_test.go

18 lines
288 B
Go
Raw Normal View History

2016-02-20 23:50:41 +00:00
package api
import (
"testing"
"github.com/hashicorp/nomad/api/internal/testutil"
2016-02-20 23:50:41 +00:00
)
func TestSystem_GarbageCollect(t *testing.T) {
testutil.Parallel(t)
2016-02-20 23:50:41 +00:00
c, s := makeClient(t, nil, nil)
defer s.Stop()
e := c.System()
if err := e.GarbageCollect(); err != nil {
t.Fatal(err)
}
}