Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Flaky RelativeDateFormatterTests #1707

@0xh3rman

Description

@0xh3rman
  • gem-ios/Packages/Formatters/Tests/FormattersTests/RelativeDateFormatterTests.swift:15 today(): Expectation failed:
    (formatter.string(from: todayWithTime) → "Today, 14:30") == "Today, 2:30 PM"
  • gem-ios/Packages/Formatters/Tests/FormattersTests/RelativeDateFormatterTests.swift:24 yesterday(): Expectation failed: (formatter.string(from: yesterdayWithTime) → "Yesterday, 09:15") == "Yesterday, 9:15 AM"
  • gem-ios/Packages/Formatters/Tests/FormattersTests/RelativeDateFormatterTests
    .swift:37 oneMonthOld(): Expectation failed: (formatter.string(from: date) → "February 2, 2025 at 10:25") == "February 2, 2025 at 10:25 AM"

I think we need to set timezone in the test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions