open-nomad/api/system_test.go

16 lines
227 B
Go
Raw Normal View History

2016-02-20 23:50:41 +00:00
package api
import (
"testing"
)
func TestSystem_GarbageCollect(t *testing.T) {
2017-07-21 23:33:04 +00:00
t.Parallel()
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)
}
}