github.com/emate/nomad@v0.8.2-wo-binpacking/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  }