瀏覽代碼

Merge pull request #6592 from nextcloud/fixDetekt

Fix detekt: Random Date is magic number in test
Tobias Kaminsky 4 年之前
父節點
當前提交
ba0005d930
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/androidTest/java/com/owncloud/android/ui/activity/NotificationsActivityIT.kt

+ 2 - 1
src/androidTest/java/com/owncloud/android/ui/activity/NotificationsActivityIT.kt

@@ -58,11 +58,12 @@ class NotificationsActivityIT : AbstractIT() {
 
     @Test
     @ScreenshotTest
+    @SuppressWarnings("MagicNumber")
     fun showNotifications() {
         val sut: NotificationsActivity = activityRule.launchActivity(null)
 
         val date = GregorianCalendar()
-        date.set(2005, 4, 17, 10, 35, 30)
+        date.set(2005, 4, 17, 10, 35, 30) // random date
 
         val notifications = ArrayList<Notification>()
         notifications.add(