Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-pmillz committed Jun 9, 2022
1 parent 0969e4d commit 7189e6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extra/extra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ func TestInstallExtraPackages(t *testing.T) {
osType := runtime.GOOS
switch osType {
case "linux":
packages, err := localio.NewAptInstalled()
installedPkgs := &localio.InstalledPackages{}
aptPackages, err := localio.NewAptInstalled()
if err != nil {
t.Errorf("failed to get AptInstalledPackages: %v", err)
}
installedPkgs.AptInstalledPackages = aptPackages

if err = localio.DownloadAndInstallLatestVersionOfGolang(dirs.HomeDir, packages); err != nil {
if err = localio.DownloadAndInstallLatestVersionOfGolang(dirs.HomeDir, installedPkgs); err != nil {
t.Errorf("couldn't download and install golang: %v", err)
}
if err = localio.RunCommandPipeOutput("go version"); err != nil {
Expand Down

0 comments on commit 7189e6b

Please sign in to comment.