github.com/zhizhiboom/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/api/system_test.go (about) 1 package api 2 3 import ( 4 "testing" 5 ) 6 7 func TestSystem_GarbageCollect(t *testing.T) { 8 t.Parallel() 9 c, s := makeClient(t, nil, nil) 10 defer s.Stop() 11 e := c.System() 12 if err := e.GarbageCollect(); err != nil { 13 t.Fatal(err) 14 } 15 }