Skip to content

Commit dfecd11

Browse files
authored
Disable nsICUNumberFormatterCache test (#1443)
This test would fail if the cache is cleared while running the test. It could happen if the number of objects exceeds the internal limit. For some reason we have not seen test failures when building for FOUNDATION_FRAMEWORK, so still leave it enabled there. We should come back to re-write the test to be more reliable for all platforms regardless.
1 parent d707b2f commit dfecd11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/FoundationInternationalizationTests/Formatting/NumberFormatStyleTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ private struct NumberFormatStyleTests {
5656
#expect(formatter_long.format(42 as Double) == "0,000,000,000,000,000,000,000,000,000,000,000,000,042")
5757
}
5858

59-
#if !os(watchOS) // 99504292
59+
#if !os(watchOS) && FOUNDATION_FRAMEWORK // 99504292 && 155484008
60+
// This test would fail if the cache is cleared while running the test
61+
// But we still enable it for FOUNDATION_FRAMEWORK because it somehow still passes there
6062
@Test func nsICUNumberFormatterCache() throws {
6163

6264
let intStyle = IntegerFormatStyle<Int64>(locale: Locale(identifier: "en_US"))

0 commit comments

Comments
 (0)