Skip to content

Commit

Permalink
test: update major page fault values for summary test
Browse files Browse the repository at this point in the history
as well as use a variable instead of a constant

Signed-off-by: Peter Hunt <pehunt@redhat.com>
  • Loading branch information
haircommander committed Nov 18, 2021
1 parent b8af116 commit 76df8ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/e2e_node/summary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ var _ = SIGDescribe("Summary API [NodeConformance]", func() {
})
}
expectedPageFaultsUpperBound := 1000000
expectedMajorPageFaultsUpperBound := 10
expectedMajorPageFaultsUpperBound := 15
if IsCgroup2UnifiedMode() {
// On cgroupv2 these stats are recursive, so make sure they are at least like the value set
// above for the container.
Expand Down Expand Up @@ -200,8 +200,8 @@ var _ = SIGDescribe("Summary API [NodeConformance]", func() {
"UsageBytes": bounded(10*e2evolume.Kb, 80*e2evolume.Mb),
"WorkingSetBytes": bounded(10*e2evolume.Kb, 80*e2evolume.Mb),
"RSSBytes": bounded(1*e2evolume.Kb, 80*e2evolume.Mb),
"PageFaults": bounded(100, 1000000),
"MajorPageFaults": bounded(0, 10),
"PageFaults": bounded(100, expectedPageFaultsUpperBound),
"MajorPageFaults": bounded(0, expectedMajorPageFaultsUpperBound),
}),
"Accelerators": gomega.BeEmpty(),
"Rootfs": ptrMatchAllFields(gstruct.Fields{
Expand Down Expand Up @@ -247,8 +247,8 @@ var _ = SIGDescribe("Summary API [NodeConformance]", func() {
"UsageBytes": bounded(10*e2evolume.Kb, 80*e2evolume.Mb),
"WorkingSetBytes": bounded(10*e2evolume.Kb, 80*e2evolume.Mb),
"RSSBytes": bounded(1*e2evolume.Kb, 80*e2evolume.Mb),
"PageFaults": bounded(0, 1000000),
"MajorPageFaults": bounded(0, 10),
"PageFaults": bounded(0, expectedPageFaultsUpperBound),
"MajorPageFaults": bounded(0, expectedMajorPageFaultsUpperBound),
}),
"VolumeStats": gstruct.MatchAllElements(summaryObjectID, gstruct.Elements{
"test-empty-dir": gstruct.MatchAllFields(gstruct.Fields{
Expand Down

0 comments on commit 76df8ac

Please sign in to comment.