From 7189e6b6661c53b4d1905c8220d1c82266adc3d5 Mon Sep 17 00:00:00 2001 From: mr-pmillz <> Date: Wed, 8 Jun 2022 23:13:54 -0400 Subject: [PATCH] fixing tests --- extra/extra_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extra/extra_test.go b/extra/extra_test.go index b65f360..ddf9fcf 100644 --- a/extra/extra_test.go +++ b/extra/extra_test.go @@ -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 {