Files
cunicu/pkg/wg/kernel_test.go
Steffen Vogel dad8d5996b update Go module path
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-09-08 17:42:12 +02:00

17 lines
327 B
Go

package wg_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/stv0g/cunicu/pkg/util"
"github.com/stv0g/cunicu/pkg/wg"
)
var _ = It("detects the kernel module", func() {
if !util.HasAdminPrivileges() {
Skip("Insufficient privileges")
}
Expect(wg.KernelModuleExists()).To(BeTrue())
})