Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
marcprux committed Oct 31, 2024
1 parent 344d2dd commit d042dc7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Tests/AndroidBridgeTests/AndroidBridgeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ final class AndroidBridgeTests: XCTestCase {
XCTAssertNil(context)
#else
XCTAssertNotNil(ProcessInfo.processInfo.androidContext, "ProcessInfo.processInfo.androidContext was nil")
XCTAssertNotNil(context, "bridged context was nil")
XCTAssertEqual("/data/user/0/android.bridge.test/files", context.filesDir)
XCTAssertEqual("/data/user/0/android.bridge.test/cache", context.cacheDir)
if !isRobolectric {
XCTAssertNotNil(context, "bridged context was nil")
XCTAssertEqual("/data/user/0/android.bridge.test/files", context.filesDir)
XCTAssertEqual("/data/user/0/android.bridge.test/cache", context.cacheDir)
}
#endif
}
}

0 comments on commit d042dc7

Please sign in to comment.