Skip to content

Commit 0165734

Browse files
committed
One more test to disable temporarily on Android
1 parent 801733c commit 0165734

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Tests/LeafKitTests/LeafKitTests.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,11 @@ final class LeafKitTests: XCTestCase {
539539

540540
await XCTAssertEqualAsync(try await renderer.render(path: "a", context: ["b":["1","2","3"]]).string, expected)
541541
}
542-
542+
543+
// The #filePath trick this test relies on doesn't work in the Android CI because the build
544+
// machine is not the same box as the test machine; we'd need to turn the templates into working
545+
// resources for that. Disable for now.
546+
#if !os(Android)
543547
func testFileSandbox() async throws {
544548
let renderer = TestRenderer(
545549
configuration: .init(rootDirectory: templateFolder),
@@ -562,7 +566,8 @@ final class LeafKitTests: XCTestCase {
562566
}
563567
XCTAssert(renderer.isDone)
564568
}
565-
569+
#endif
570+
566571
func testMultipleSources() async throws {
567572
var sourceOne = TestFiles()
568573
var sourceTwo = TestFiles()

0 commit comments

Comments
 (0)