access_credentials_test:add err check for ioutil.TempDir
@@ -55,13 +55,15 @@ var _ = Describe("AccessCredentials", func() {
var lock sync.Mutex
BeforeEach(func() {
+ var err error
ctrl = gomock.NewController(GinkgoT())
mockConn = cli.NewMockConnection(ctrl)
mockDomain = cli.NewMockVirDomain(ctrl)
manager = NewManager(mockConn, &lock)
manager.resyncCheckIntervalSeconds = 1
- tmpDir, _ = ioutil.TempDir("", "credential-test")
+ tmpDir, err = ioutil.TempDir("", "credential-test")
+ Expect(err).ToNot(HaveOccurred())
unitTestSecretDir = tmpDir
})
AfterEach(func() {
