Skip to content

Commit

Permalink
PMM-12940 Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Jul 18, 2024
1 parent df730f2 commit 83c4801
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions managed/utils/distribution/distribution_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ func Test_distributionUtilServiceImpl_getDistributionMethodAndOS(t *testing.T) {
tmpOsInfoFilePath = f2.Name()
}

d := NewService(logEntry)
d.distributionInfoFilePath = tmpDistributionFilePath
d.osInfoFilePath = tmpOsInfoFilePath
d := NewService(tmpDistributionFilePath, tmpOsInfoFilePath, logEntry)
got, got1, got2 := d.GetDistributionMethodAndOS()
assert.Equalf(t, tt.want, got, "GetDistributionMethodAndOS() serverpb.DistributionMethod")
assert.Equalf(t, tt.want1, got1, "GetDistributionMethodAndOS() pmmv1.DistributionMethod")
Expand Down

0 comments on commit 83c4801

Please sign in to comment.