Files
cunicu/pkg/wg/kernel_test.go
Steffen Vogel 8b934e2cfc fix crossplatform compatability
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-08-04 00:20:43 +02:00

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())
})