test and logic fixes

This commit is contained in:
2026-05-30 17:08:14 -05:00
parent 430b018aa9
commit 83c929c24b
11 changed files with 56 additions and 32 deletions
+2 -11
View File
@@ -377,9 +377,7 @@ func TestSystemGoEdgeCases(t *testing.T) {
}
hasCmd = func(name string) bool { return true }
if !isSpecialPkgInstalled("bashtop") {
t.Error("expected bashtop to be installed")
}
if !isSpecialPkgInstalled("pulumi") {
t.Error("expected pulumi to be installed")
}
@@ -445,14 +443,7 @@ func TestSystemGoEdgeCases(t *testing.T) {
fetchText = func(url string) string { return "mismatch-checksum minikube" }
installSpecialPkg("minikube", "/tmp")
resetMocks()
osStat = func(name string) (os.FileInfo, error) {
return nil, nil
}
runCmd = func(argv []string, opts CmdOpts) CmdResult {
return CmdResult{ExitCode: 1}
}
installSpecialPkg("bashtop", "/tmp")
resetMocks()
fetchText = func(url string) string { return "some-sha pulumi-v3.90.0-linux-x64.tar.gz" }