Fix TestPackage version (#3484)

This commit is contained in:
Lucas Manuel Rodriguez 2021-12-23 15:13:38 -03:00 committed by GitHub
parent 1d891cd343
commit 5dc93a8c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,12 +25,12 @@ func TestPackage(t *testing.T) {
// run package tests, each should output their respective package type
// fleet-osquery_0.0.3_amd64.deb
runAppForTest(t, []string{"package", "--type=deb", "--insecure"})
info, err := os.Stat("fleet-osquery_0.0.3_amd64.deb")
info, err := os.Stat("fleet-osquery_0.0.5_amd64.deb")
require.NoError(t, err)
require.Greater(t, info.Size(), int64(0)) // TODO verify contents
// fleet-osquery-0.0.3.x86_64.rpm
runAppForTest(t, []string{"package", "--type=rpm", "--insecure"})
info, err = os.Stat("fleet-osquery-0.0.3.x86_64.rpm")
info, err = os.Stat("fleet-osquery-0.0.5.x86_64.rpm")
require.NoError(t, err)
require.Greater(t, info.Size(), int64(0)) // TODO verify contents
// fleet-osquery.msi