Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Fixed nodewatcher test.
Browse files Browse the repository at this point in the history
The test was failing because PUs' friendly_name
has changed.

Affected modules: pkg/k8sclient

Change-Id: I4b6b7acb1e69bfc756a86531cd11b8601679a13e
  • Loading branch information
ICGog committed Jul 18, 2017
1 parent 6fb8be5 commit 99edc15
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkg/k8sclient/nodewatcher_test.go
Expand Up @@ -73,6 +73,10 @@ func BuildFirmamentResourceDescriptor(
Uuid: coreOneUuid,
FriendlyName: coreOnefriendlyName,
State: firmament.ResourceDescriptor_RESOURCE_IDLE,
ResourceCapacity: &firmament.ResourceVector{
CpuCores: cpuCores,
RamCap: ramCap,
},
},
ParentId: uuid,
},
Expand Down Expand Up @@ -321,8 +325,8 @@ func TestNodeWatcher_createResourceTopologyForNode(t *testing.T) {
"node0",
1000,
9765625,
"22e3e4c7-4c49-485e-8d41-7e83e2073a57",
"node0_pu0"),
"a03e6733-dc70-4da5-91ea-bded4bbee951",
"node0_PU #0"),
},
{
node: &Node{
Expand All @@ -341,8 +345,8 @@ func TestNodeWatcher_createResourceTopologyForNode(t *testing.T) {
"node1",
1000,
2048,
"c9fe9fd0-2a5b-4b47-a064-498da81c7aa1",
"node1_pu0"),
"6b45f181-d411-4bf1-9755-89a35115cdd7",
"node1_PU #0"),
},
}
testObj := initializeNodeObj(t)
Expand Down

0 comments on commit 99edc15

Please sign in to comment.