From 7fb33a023010f5fd4430486a421306caf3142d42 Mon Sep 17 00:00:00 2001 From: cyberta Date: Tue, 22 Nov 2022 14:16:15 +0100 Subject: debug failing test in CI - print out formatted date --- app/src/test/java/se/leap/bitmaskclient/base/utils/DateHelperTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/test') 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 -- cgit v1.2.3