From 64290ee2cea6f8bca92f9cabe7f229e24267a201 Mon Sep 17 00:00:00 2001 From: Hossain Khan Date: Mon, 1 Jan 2024 18:54:58 -0500 Subject: [PATCH] [FIXED] Local `gradlew test` run --- src/test/kotlin/dev/hossain/time/InstantExtensionKtTest.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/kotlin/dev/hossain/time/InstantExtensionKtTest.kt b/src/test/kotlin/dev/hossain/time/InstantExtensionKtTest.kt index 89844aa..541a715 100644 --- a/src/test/kotlin/dev/hossain/time/InstantExtensionKtTest.kt +++ b/src/test/kotlin/dev/hossain/time/InstantExtensionKtTest.kt @@ -23,6 +23,11 @@ class InstantExtensionKtTest { val formattedString = instant.format() - assertThat(formattedString).isEqualTo("Monday, September 5, 2022 at 6:00:00 AM Eastern Daylight Time") + // Expected: Monday, September 5, 2022 at 6:00:00 AM Eastern Daylight Time + // However, splitted text because of different result in CI and local gradle run. + assertThat(formattedString).contains("Monday, September 5, 2022") + assertThat(formattedString).contains("6:00:00") + assertThat(formattedString).contains("Eastern Daylight Time") + } }