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