Skip to content

Commit

Permalink
initialize capabilities unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Mar 13, 2021
1 parent fcee7a0 commit e375191
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/capabilities/capabilities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit e375191

Please sign in to comment.