File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
com.unity.mobile.notifications/Tests/Runtime/iOS Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ public void AfterEachTest()
74
74
{
75
75
receivedNotificationCount = 0 ;
76
76
lastReceivedNotification = null ;
77
+ iOSNotificationCenter . RemoveAllScheduledNotifications ( ) ;
77
78
}
78
79
#endif
79
80
@@ -158,7 +159,7 @@ public IEnumerator SendNotificationWithUserInfo_NotificationIsReceivedWithSameUs
158
159
IEnumerator SendNotificationUsingCalendarTrigger_NotificationIsReceived ( string text , bool useUtc )
159
160
{
160
161
var dateTime = useUtc ? DateTime . UtcNow : DateTime . Now ;
161
- var dt = dateTime . AddSeconds ( 3 ) ;
162
+ var dt = dateTime . AddSeconds ( 5 ) ;
162
163
var trigger = new iOSNotificationCalendarTrigger ( )
163
164
{
164
165
Year = dt . Year ,
@@ -180,6 +181,7 @@ IEnumerator SendNotificationUsingCalendarTrigger_NotificationIsReceived(string t
180
181
} ;
181
182
182
183
iOSNotificationCenter . ScheduleNotification ( notification ) ;
184
+ Debug . Log ( $ "SendNotificationUsingCalendarTrigger_NotificationIsReceived, Now: { dateTime } , Notification should arrive on: { dt } ") ;
183
185
yield return WaitForNotification ( 10.0f ) ;
184
186
Assert . AreEqual ( 1 , receivedNotificationCount ) ;
185
187
Assert . IsNotNull ( lastReceivedNotification ) ;
You can’t perform that action at this time.
0 commit comments