Skip to content

Commit

Permalink
Fix a flaky test for Darwin converters (#288)
Browse files Browse the repository at this point in the history
Fixes #287

Explicitly format the date in the test with the UTC timezone
  • Loading branch information
MarkCMann authored Jun 28, 2023
1 parent 4a44db4 commit acf2a8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/darwin/test/ConvertersTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class ConvertersTest {
components.timeZone = utc
val nsDate = gregorian.dateFromComponents(components)!!
val formatter = NSDateFormatter()
formatter.timeZone = utc
formatter.dateFormat = "yyyy-MM-dd"
assertEquals("2019-02-04", formatter.stringFromDate(nsDate))
}
Expand Down

0 comments on commit acf2a8f

Please sign in to comment.