summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyberta <cyberta@riseup.net>2022-11-22 14:16:15 +0100
committercyberta <cyberta@riseup.net>2022-11-22 14:16:43 +0100
commit7fb33a023010f5fd4430486a421306caf3142d42 (patch)
treee507b59700fe63ebeb5feef43ff9e9a7447be058 /app/src
parent24363464d6336ea3ac61bf4fe59b2e253676eaf2 (diff)
debug failing test in CI - print out formatted date
Diffstat (limited to 'app/src')
-rw-r--r--app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java b/app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java
index c857c103..3d38cb8a 100644
--- a/app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java
+++ b/app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java
@@ -14,6 +14,7 @@ public class DateHelperTest {
Pattern datePattern = Pattern.compile("^10 Nov 22 11:26 [+-][0-9]{4}$");
String formattedDate = DateHelper.getFormattedDateWithTimezone(1668075969744L);
Matcher matcher = datePattern.matcher(formattedDate);
- assertTrue(matcher.find());
+ System.out.println(formattedDate);
+ assertTrue("date should be formatted similar to 10 Nov 22 11:26 +0100", matcher.find());
}
} \ No newline at end of file