Skip to content

Commit 8f2bf15

Browse files
committed
Specify exactly the time zone on which converters can fail
1 parent 87dbb18 commit 8f2bf15

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

core/darwin/test/ConvertersTest.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ class ConvertersTest {
5151
if (timeZone is FixedOffsetTimeZone) {
5252
continue
5353
}
54-
val nsTimeZone = try { timeZone.toNSTimeZone() } catch (e: IllegalArgumentException) { continue }
54+
val nsTimeZone = try {
55+
timeZone.toNSTimeZone()
56+
} catch (e: IllegalArgumentException) {
57+
assertEquals("America/Ciudad_Juarez", id)
58+
continue
59+
}
5560
assertEquals(normalizedId, nsTimeZone.name)
5661
assertEquals(timeZone, nsTimeZone.toKotlinTimeZone())
5762
}

0 commit comments

Comments
 (0)