mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-10-05 00:42:56 +08:00
28 lines
415 B
Go
28 lines
415 B
Go
package core_test
|
|
|
|
import (
|
|
"math/rand"
|
|
"testing"
|
|
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
|
|
"riasc.eu/wice/pkg/util"
|
|
"riasc.eu/wice/test"
|
|
)
|
|
|
|
func TestSuite(t *testing.T) {
|
|
rand.Seed(GinkgoRandomSeed())
|
|
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "Core Suite")
|
|
}
|
|
|
|
var _ = test.SetupLogging()
|
|
|
|
var _ = BeforeSuite(func() {
|
|
if !util.HasAdminPrivileges() {
|
|
Skip("Insufficient privileges")
|
|
}
|
|
})
|