File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
com.unity.mobile.notifications/Tests/Runtime/Android Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public IEnumerator ScheduleRepeatableNotification_NotificationsAreReceived()
149
149
var n = new AndroidNotification ( ) ;
150
150
n . Title = "Repeating Notification Title" ;
151
151
n . Text = "Repeating Notification Text" ;
152
- n . FireTime = System . DateTime . Now ;
152
+ n . FireTime = System . DateTime . Now . AddSeconds ( 2 ) ;
153
153
n . RepeatInterval = new System . TimeSpan ( 0 , 0 , 5 ) ; // interval needs to be quite big for test to be reliable
154
154
155
155
Debug . LogWarning ( "ScheduleRepeatableNotification_NotificationsAreReceived sends notification" ) ;
@@ -158,8 +158,8 @@ public IEnumerator ScheduleRepeatableNotification_NotificationsAreReceived()
158
158
159
159
// we use inexact scheduling, so repeated notification may take a while to appear
160
160
// inexact also can group, so for test purposes we only check that it repeats at least once
161
- yield return WaitForNotification ( 8 .0f) ;
162
- yield return WaitForNotification ( 30 .0f) ;
161
+ yield return WaitForNotification ( 120 .0f) ;
162
+ yield return WaitForNotification ( 120 .0f) ;
163
163
AndroidNotificationCenter . CancelScheduledNotification ( originalId ) ;
164
164
165
165
Debug . LogWarning ( "ScheduleRepeatableNotification_NotificationsAreReceived completed" ) ;
You can’t perform that action at this time.
0 commit comments