github.com/diptanu/nomad@v0.5.7-0.20170516172507-d72e86cbe3d9/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  }