Skip to content

Commit acf2a8f

Browse files
authored
Fix a flaky test for Darwin converters (#288)
Fixes #287 Explicitly format the date in the test with the UTC timezone
1 parent 4a44db4 commit acf2a8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/darwin/test/ConvertersTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class ConvertersTest {
7979
components.timeZone = utc
8080
val nsDate = gregorian.dateFromComponents(components)!!
8181
val formatter = NSDateFormatter()
82+
formatter.timeZone = utc
8283
formatter.dateFormat = "yyyy-MM-dd"
8384
assertEquals("2019-02-04", formatter.stringFromDate(nsDate))
8485
}

0 commit comments

Comments
 (0)