github.com/hashicorp/nomad/api@v0.0.0-20240306165712-3193ac204f65/system_test.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  package api
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/hashicorp/nomad/api/internal/testutil"
    10  	"github.com/shoenig/test/must"
    11  )
    12  
    13  func TestSystem_GarbageCollect(t *testing.T) {
    14  	testutil.Parallel(t)
    15  
    16  	c, s := makeClient(t, nil, nil)
    17  	defer s.Stop()
    18  	e := c.System()
    19  	err := e.GarbageCollect()
    20  	must.NoError(t, err)
    21  }