From 3262d9a77bb6756a93a2907231da9c74cb0b87f8 Mon Sep 17 00:00:00 2001 From: Florian Friedrich Date: Mon, 11 Mar 2024 15:27:39 +0100 Subject: [PATCH] Fix tests on visionOS --- Tests/AppGroupsTests/AppGroupTests.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tests/AppGroupsTests/AppGroupTests.swift b/Tests/AppGroupsTests/AppGroupTests.swift index c78e6b6..15943a3 100644 --- a/Tests/AppGroupsTests/AppGroupTests.swift +++ b/Tests/AppGroupsTests/AppGroupTests.swift @@ -31,8 +31,13 @@ final class AppGroupTests: XCTestCase { func testAccessors() { let appGroup = AppGroup(identifier: "group.test.accessors") +#if !os(visionOS) // No idea why it works on these platforms... XCTAssertNotNil(appGroup.userDefaults) XCTAssertNotNil(appGroup.fileSystem) +#else + XCTAssertNil(appGroup.userDefaults) + XCTAssertNil(appGroup.fileSystem) +#endif } func testFileSystem() {