From f806bf876b9f584102f4c8094f4df572b159c064 Mon Sep 17 00:00:00 2001 From: Ferdy Rodriguez Date: Wed, 29 May 2024 11:08:34 +0200 Subject: [PATCH] testing log in test --- .github/workflows/continuous-integration.yml | 2 +- app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 69f7c10773..1f89966a4f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -42,7 +42,7 @@ jobs: # Running unit tests on app module - name: Run app module tests - run: ./gradlew :app:testDhisDebugUnitTest --tests org.dhis2.bindings.DateExtensionsTest --info --stacktrace + run: ./gradlew :app:testDhisDebugUnitTest --tests org.dhis2.bindings.DateExtensionsTest --info # Running unit tests on all other modules # - name: Run all modules tests diff --git a/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt b/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt index 3d020ff92e..7109896574 100644 --- a/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt +++ b/app/src/test/java/org/dhis2/bindings/DateExtensionsTest.kt @@ -258,7 +258,7 @@ class DateExtensionsTest { assert(date.toOverdueOrScheduledUiText(resourceManager, currentDate) == "In 3 years") } - private fun currentCalendar() = Calendar.getInstance().apply { + private fun currentCalendar() = Calendar.getInstance(Locale.getDefault()).apply { time = "2020-03-02T00:00:00.00Z".toDate() } }