Skip to content

Commit

Permalink
added a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
sridharnandigam committed Apr 16, 2023
1 parent 7c4ac85 commit 165d057
Show file tree
Hide file tree
Showing 2 changed files with 1,316 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/e2e/cgroups/cgroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ package cgroups

import (
"github.com/onsi/ginkgo/v2"
"github.com/stretchr/testify/assert"

"k8s.io/ingress-nginx/test/e2e/framework"

"k8s.io/ingress-nginx/pkg/util/runtime"
)

var _ = framework.IngressNginxDescribeSerial("[CGroups] cgroups", func() {
Expand All @@ -31,11 +34,11 @@ var _ = framework.IngressNginxDescribeSerial("[CGroups] cgroups", func() {
})

ginkgo.It("detects number of CPUs properly in cgroups v1", func() {

assert.Equal(ginkgo.GinkgoT(), runtime.NumCPU(), -1)
})

ginkgo.It("detects number of CPUs properly in cgroups v2", func() {

assert.Equal(ginkgo.GinkgoT(), runtime.NumCPU(), -1)
})

ginkgo.It("detects cgroups version", func() {
Expand Down
Loading

0 comments on commit 165d057

Please sign in to comment.