Remove unnecessary step in getting node client

All allocation stats are routable from the server
This commit is contained in:
Preetha Appan 2019-04-01 10:45:41 -05:00
parent f9019ae605
commit a262be08e7
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 1 additions and 4 deletions

View File

@ -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