Skip to content

Commit

Permalink
Merge pull request #309 from lacework/afiune/codefresh
Browse files Browse the repository at this point in the history
ci: disable home directory cache mechanism
  • Loading branch information
afiune authored Jan 28, 2021
2 parents ff5677e + 7a2db8a commit e4e7547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cmd/package_manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestRemoveInactivePackagesFromManifestRemoveKernelRPM(t *testing.T) {
},
api.OsPkgInfo{
Os: "amzn", OsVer: "2",
Pkg: "kernel", PkgVer: "4.14.203-156.332.amzn2", // without EPOCH
Pkg: "kernel", PkgVer: "4.14.203-156.331.amzn2", // without EPOCH
},
},
}
Expand Down
2 changes: 2 additions & 0 deletions lwrunner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"path"
"testing"

homedir "github.com/mitchellh/go-homedir"
"github.com/stretchr/testify/assert"
"golang.org/x/crypto/ssh"

Expand Down Expand Up @@ -130,6 +131,7 @@ func TestLwRunnerDefaultKnownHosts(t *testing.T) {
os.Setenv("HOME", mockHome)
defer os.Setenv("HOME", homeCache)

homedir.DisableCache = true
subject, err := lwrunner.DefaultKnownHosts()
assert.NotNil(t, subject)
if assert.Nil(t, err) {
Expand Down

0 comments on commit e4e7547

Please sign in to comment.