From 205f49f6b7b2b16e5dc883f66693d2e9cc76a271 Mon Sep 17 00:00:00 2001 From: Salim Afiune Maya Date: Thu, 28 Jan 2021 14:20:08 -0600 Subject: [PATCH 1/2] ci: disable home directory cache mechanism Signed-off-by: Salim Afiune Maya --- lwrunner/runner_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lwrunner/runner_test.go b/lwrunner/runner_test.go index c62316107..288bade26 100644 --- a/lwrunner/runner_test.go +++ b/lwrunner/runner_test.go @@ -25,6 +25,7 @@ import ( "path" "testing" + homedir "github.com/mitchellh/go-homedir" "github.com/stretchr/testify/assert" "golang.org/x/crypto/ssh" @@ -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) { From 7a2db8acc0f97058eb696030a22d8b2ca68f5a6d Mon Sep 17 00:00:00 2001 From: Salim Afiune Maya Date: Thu, 28 Jan 2021 16:47:19 -0600 Subject: [PATCH 2/2] test: update amzn kernel version Signed-off-by: Salim Afiune Maya --- cli/cmd/package_manifest_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/package_manifest_test.go b/cli/cmd/package_manifest_test.go index eec097ce6..cae188827 100644 --- a/cli/cmd/package_manifest_test.go +++ b/cli/cmd/package_manifest_test.go @@ -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 }, }, }