From d82e01a75039013b9cfa311c54e071bbc3791a26 Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Thu, 8 Apr 2021 01:49:53 -0400 Subject: [PATCH] client: fix failing test --- client/client_test.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index ee5215e49..6bbbac202 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -1118,7 +1118,11 @@ func TestClient_UpdateNodeFromDevicesAccumulates(t *testing.T) { Disk: client.configCopy.Node.NodeResources.Disk, // injected - Cpu: structs.NodeCpuResources{CpuShares: 123}, + Cpu: structs.NodeCpuResources{ + CpuShares: 123, + ReservableCpuCores: client.configCopy.Node.NodeResources.Cpu.ReservableCpuCores, + TotalCpuCores: client.configCopy.Node.NodeResources.Cpu.TotalCpuCores, + }, Memory: structs.NodeMemoryResources{MemoryMB: 1024}, Devices: []*structs.NodeDeviceResource{ { @@ -1156,7 +1160,11 @@ func TestClient_UpdateNodeFromDevicesAccumulates(t *testing.T) { Disk: client.configCopy.Node.NodeResources.Disk, // injected - Cpu: structs.NodeCpuResources{CpuShares: 123}, + Cpu: structs.NodeCpuResources{ + CpuShares: 123, + ReservableCpuCores: client.configCopy.Node.NodeResources.Cpu.ReservableCpuCores, + TotalCpuCores: client.configCopy.Node.NodeResources.Cpu.TotalCpuCores, + }, Memory: structs.NodeMemoryResources{MemoryMB: 2048}, Devices: []*structs.NodeDeviceResource{ {