mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-10-29 00:21:45 +08:00
17 lines
307 B
Go
17 lines
307 B
Go
package wg_test
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
"riasc.eu/wice/pkg/util"
|
|
"riasc.eu/wice/pkg/wg"
|
|
)
|
|
|
|
var _ = It("detects the kernel module", func() {
|
|
if !util.HasAdminPrivileges() {
|
|
Skip("Insufficient privileges")
|
|
}
|
|
|
|
Expect(wg.KernelModuleExists()).To(BeTrue())
|
|
})
|