Skip to content

Commit f89f3ca

Browse files
authored
Merge pull request #163 from Unity-Technologies/ios/improve-tests
Increase timeouts, cause test randomly fail too often
2 parents 2709688 + 915932a commit f89f3ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.unity.mobile.notifications/Tests/Runtime/iOS/iOSNotificationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public IEnumerator SendSimpleNotification_NotificationIsReceived()
117117

118118
iOSNotificationCenter.ScheduleNotification(notification);
119119

120-
yield return WaitForNotification(6.0f);
120+
yield return WaitForNotification(10.0f);
121121
Assert.AreEqual(1, receivedNotificationCount);
122122
}
123123

@@ -148,7 +148,7 @@ public IEnumerator SendNotificationWithUserInfo_NotificationIsReceivedWithSameUs
148148

149149
iOSNotificationCenter.ScheduleNotification(notification);
150150

151-
yield return WaitForNotification(6.0f);
151+
yield return WaitForNotification(10.0f);
152152
Assert.AreEqual(1, receivedNotificationCount);
153153
Assert.IsNotNull(lastReceivedNotification);
154154
Assert.IsTrue(lastReceivedNotification.UserInfo.ContainsKey("key1"));
@@ -180,7 +180,7 @@ IEnumerator SendNotificationUsingCalendarTrigger_NotificationIsReceived(string t
180180
};
181181

182182
iOSNotificationCenter.ScheduleNotification(notification);
183-
yield return WaitForNotification(5.0f);
183+
yield return WaitForNotification(10.0f);
184184
Assert.AreEqual(1, receivedNotificationCount);
185185
Assert.IsNotNull(lastReceivedNotification);
186186
Assert.AreEqual(text, lastReceivedNotification.Title);

0 commit comments

Comments
 (0)