Remove unnecessary step in getting node client
All allocation stats are routable from the server
This commit is contained in:
parent
f9019ae605
commit
a262be08e7
|
@ -53,10 +53,7 @@ func (tc *BasicAllocStatsTest) TestResourceStats(f *framework.F) {
|
|||
allocID := allocs[0].ID
|
||||
e2eutil.WaitForAllocRunning(f.T(), nomadClient, allocID)
|
||||
|
||||
// Get client for node the alloc is running on
|
||||
nodeClient, err := nomadClient.GetNodeClient(allocs[0].NodeID, nil)
|
||||
require.Nil(err)
|
||||
allocsClient := nodeClient.Allocations()
|
||||
allocsClient := nomadClient.Allocations()
|
||||
|
||||
// Verify allocation resource stats
|
||||
// This job file should result in non zero CPU and Memory stats
|
||||
|
|
Loading…
Reference in New Issue