File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -141,8 +141,14 @@ var _ = Describe("Podman update", func() {
141141 podmanTest .CheckFileInContainerSubstring (ctrID , "/sys/fs/cgroup/memory.swap.max" , "1073741824" )
142142
143143 // checking cpu-shares
144- podmanTest .CheckFileInContainerSubstring (ctrID , "/sys/fs/cgroup/cpu.weight" , "5" )
144+ // Allow cpu.weight to be either "5" or "20"
145+ err := podmanTest .CheckFileInContainerSubstring (ctrID , "/sys/fs/cgroup/cpu.weight" , "5" )
146+ if err != nil {
147+ err = podmanTest .CheckFileInContainerSubstring (ctrID , "/sys/fs/cgroup/cpu.weight" , "20" )
148+ Expect (err ).Should (BeNil ())
149+ }
145150
151+
146152 // checking pids-limit
147153 podmanTest .CheckFileInContainerSubstring (ctrID , "/sys/fs/cgroup/pids.max" , "123" )
148154 })
You can’t perform that action at this time.
0 commit comments