Skip to content

Commit f3a63ff

Browse files
authored
Merge pull request #58 from Automattic/fix-missing-var-dir-in-test
Add missing 'var' to the expected vm-images directory
2 parents 3652941 + b142d3d commit f3a63ff

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

Tests/libhostmgrTests/Model/PathsTests.swift

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,30 @@ final class PathsTests: XCTestCase {
1919
}
2020

2121
func testThatVMStoragePathIsCorrect() {
22-
validate(path: Paths.vmImageStorageDirectory, resolvesTo: "/usr/local/var/vm-images", forArchitecture: .x64)
23-
validate(path: Paths.vmImageStorageDirectory, resolvesTo: "/opt/homebrew/vm-images", forArchitecture: .arm64)
22+
validate(
23+
path: Paths.vmImageStorageDirectory,
24+
resolvesTo: "/usr/local/var/vm-images",
25+
forArchitecture: .x64
26+
)
27+
validate(
28+
path: Paths.vmImageStorageDirectory,
29+
resolvesTo: "/opt/homebrew/var/vm-images",
30+
forArchitecture: .arm64
31+
)
2432
}
2533

2634
func testThatGitMirrorStoragePathIsCorrect() {
2735
let path = Paths.gitMirrorStorageDirectory
28-
validate(path: path, resolvesTo: "/usr/local/var/git-mirrors", forArchitecture: .x64)
29-
validate(path: path, resolvesTo: "/opt/homebrew/git-mirrors", forArchitecture: .arm64)
36+
validate(
37+
path: path,
38+
resolvesTo: "/usr/local/var/git-mirrors",
39+
forArchitecture: .x64
40+
)
41+
validate(
42+
path: path,
43+
resolvesTo: "/opt/homebrew/var/git-mirrors",
44+
forArchitecture: .arm64
45+
)
3046
}
3147

3248
@available(macOS 13.0, *)

0 commit comments

Comments
 (0)