mirror of
https://github.com/munki/munki.git
synced 2026-05-02 18:30:03 -05:00
Fix broken test
This commit is contained in:
@@ -236,7 +236,10 @@ struct PackageInfoFileTests {
|
||||
let unwrappedPkginfoPath = try #require(
|
||||
pkginfoPath, "Failed to create temporary pkgInfo file"
|
||||
)
|
||||
let receipt = receiptFromPackageInfoFile(unwrappedPkginfoPath)
|
||||
let receipt = try #require(
|
||||
receiptFromPackageInfoFile(unwrappedPkginfoPath),
|
||||
"Could not get receipt from pkginfo"
|
||||
)
|
||||
#expect((receipt["packageid"] as? String ?? "") == "com.googlecode.munki.core")
|
||||
}
|
||||
|
||||
@@ -244,7 +247,10 @@ struct PackageInfoFileTests {
|
||||
let unwrappedPkginfoPath = try #require(
|
||||
pkginfoPath, "Failed to create temporary pkgInfo file"
|
||||
)
|
||||
let receipt = receiptFromPackageInfoFile(unwrappedPkginfoPath)
|
||||
let receipt = try #require(
|
||||
receiptFromPackageInfoFile(unwrappedPkginfoPath),
|
||||
"Could not get receipt from pkginfo"
|
||||
)
|
||||
#expect((receipt["version"] as? String ?? "") == "7.0.0.5096")
|
||||
}
|
||||
|
||||
@@ -252,7 +258,10 @@ struct PackageInfoFileTests {
|
||||
let unwrappedPkginfoPath = try #require(
|
||||
pkginfoPath, "Failed to create temporary pkgInfo file"
|
||||
)
|
||||
let receipt = receiptFromPackageInfoFile(unwrappedPkginfoPath)
|
||||
let receipt = try #require(
|
||||
receiptFromPackageInfoFile(unwrappedPkginfoPath),
|
||||
"Could not get receipt from pkginfo"
|
||||
)
|
||||
#expect((receipt["installed_size"] as? Int ?? 0) == 39393)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user