Skip to content

Commit

Permalink
fixed test struct
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-pmillz committed Jun 9, 2022
1 parent 7189e6b commit ab1a8ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions localio/localio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,12 @@ func TestDownloadAndInstallLatestVersionOfGolang(t *testing.T) {
if err != nil {
t.Errorf("failed to create Directories type: %v", err)
}
pkgs, err := NewAptInstalled()
installedPkgs := &InstalledPackages{}
aptPackages, err := NewAptInstalled()
if err != nil {
t.Errorf("failed to get AptInstalledPackages: %v", err)
}
installedPkgs.AptInstalledPackages = aptPackages
type args struct {
homeDir string
packages *InstalledPackages
Expand All @@ -136,7 +138,7 @@ func TestDownloadAndInstallLatestVersionOfGolang(t *testing.T) {
args args
wantErr bool
}{
{name: "TestDownloadAndInstallLatestVersionOfGolang 1", args: args{homeDir: dirs.HomeDir, packages: pkgs}, wantErr: false},
{name: "TestDownloadAndInstallLatestVersionOfGolang 1", args: args{homeDir: dirs.HomeDir, packages: installedPkgs}, wantErr: false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit ab1a8ef

Please sign in to comment.