github.com/mattyr/nomad@v0.3.3-0.20160919021406-3485a065154a/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 }