Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 7189e6b

Browse files
author
mr-pmillz
committed
fixing tests
1 parent 0969e4d commit 7189e6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extra/extra_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ func TestInstallExtraPackages(t *testing.T) {
1717
osType := runtime.GOOS
1818
switch osType {
1919
case "linux":
20-
packages, err := localio.NewAptInstalled()
20+
installedPkgs := &localio.InstalledPackages{}
21+
aptPackages, err := localio.NewAptInstalled()
2122
if err != nil {
2223
t.Errorf("failed to get AptInstalledPackages: %v", err)
2324
}
25+
installedPkgs.AptInstalledPackages = aptPackages
2426

25-
if err = localio.DownloadAndInstallLatestVersionOfGolang(dirs.HomeDir, packages); err != nil {
27+
if err = localio.DownloadAndInstallLatestVersionOfGolang(dirs.HomeDir, installedPkgs); err != nil {
2628
t.Errorf("couldn't download and install golang: %v", err)
2729
}
2830
if err = localio.RunCommandPipeOutput("go version"); err != nil {

0 commit comments

Comments
 (0)