mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
initialize capabilities unit test
This commit is contained in:
parent
fcee7a0105
commit
e37519151b
@ -18,10 +18,17 @@ package capabilities
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"sync"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGet(t *testing.T) {
|
||||
defer func() {
|
||||
capInstance.lock.Lock()
|
||||
defer capInstance.lock.Unlock()
|
||||
capInstance.capabilities = nil
|
||||
capInstance.once = sync.Once{}
|
||||
}()
|
||||
defaultCap := Capabilities{
|
||||
AllowPrivileged: false,
|
||||
PrivilegedSources: PrivilegedSources{
|
||||
|
Loading…
Reference in New Issue
Block a user