Skip to content

Commit 28ed0db

Browse files
authored
Merge pull request kubernetes#82772 from zouyee/ccms
fix pod infra containers oom-score-adj testing
2 parents e7090e8 + efcf4f4 commit 28ed0db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/e2e_node/container_manager_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ var _ = framework.KubeDescribe("Container Manager Misc [Serial]", func() {
118118
},
119119
},
120120
})
121+
121122
var pausePids []int
122123
ginkgo.By("checking infra container's oom-score-adj")
123124
gomega.Eventually(func() error {
@@ -139,12 +140,12 @@ var _ = framework.KubeDescribe("Container Manager Misc [Serial]", func() {
139140
var shPids []int
140141
ginkgo.By("checking besteffort container's oom-score-adj")
141142
gomega.Eventually(func() error {
142-
shPids, err = getPidsForProcess("serve_hostname", "")
143+
shPids, err = getPidsForProcess("agnhost", "")
143144
if err != nil {
144145
return fmt.Errorf("failed to get list of serve hostname process pids: %v", err)
145146
}
146147
if len(shPids) != 1 {
147-
return fmt.Errorf("expected only one serve_hostname process; found %d", len(shPids))
148+
return fmt.Errorf("expected only one agnhost process; found %d", len(shPids))
148149
}
149150
return validateOOMScoreAdjSetting(shPids[0], 1000)
150151
}, 2*time.Minute, time.Second*4).Should(gomega.BeNil())

0 commit comments

Comments
 (0)