diff --git a/features/fixtures/maze_runner/Assets/Scripts/Scenario.cs b/features/fixtures/maze_runner/Assets/Scripts/Scenario.cs index cb70f5e41..f124b5a58 100644 --- a/features/fixtures/maze_runner/Assets/Scripts/Scenario.cs +++ b/features/fixtures/maze_runner/Assets/Scripts/Scenario.cs @@ -38,6 +38,10 @@ public virtual void PrepareConfig(string apiKey, string host) Configuration.DotnetScriptingRuntime = FindDotnetScriptingRuntime(); Configuration.DotnetApiCompatibility = FindDotnetApiCompatibility(); Configuration.AutoTrackSessions = false; + if (Application.platform == RuntimePlatform.IPhonePlayer) + { + Configuration.EnabledErrorTypes.OOMs = false; + } } public void AddSwitchConfigValues(SwitchCacheType switchCacheType, int switchCacheIndex, string switchMountName) diff --git a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/CorruptedCacheFile.cs b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/CorruptedCacheFile.cs index 3f5df4a53..161f20241 100644 --- a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/CorruptedCacheFile.cs +++ b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/CorruptedCacheFile.cs @@ -9,10 +9,6 @@ public class CorruptedCacheFile : Scenario public override void PrepareConfig(string apiKey, string host) { base.PrepareConfig(apiKey, host); - if (Application.platform == RuntimePlatform.IPhonePlayer) - { - Configuration.EnabledErrorTypes.OOMs = false; - } } public override void Run() diff --git a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/MaxPersistEvents.cs b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/MaxPersistEvents.cs index 9023134f6..6e744c32a 100644 --- a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/MaxPersistEvents.cs +++ b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/MaxPersistEvents.cs @@ -9,10 +9,6 @@ public override void PrepareConfig(string apiKey, string host) { base.PrepareConfig(apiKey, host); Configuration.MaxPersistedEvents = 3; - if (Application.platform == RuntimePlatform.IPhonePlayer) - { - Configuration.EnabledErrorTypes.OOMs = false; - } } public override void Run() diff --git a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistDeviceId.cs b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistDeviceId.cs index 49fc9f75a..fe3bdb812 100644 --- a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistDeviceId.cs +++ b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistDeviceId.cs @@ -5,10 +5,6 @@ public class PersistDeviceId : Scenario public override void PrepareConfig(string apiKey, string host) { base.PrepareConfig(apiKey, host); - if (Application.platform == RuntimePlatform.IPhonePlayer) - { - Configuration.EnabledErrorTypes.OOMs = false; - } } public override void Run() diff --git a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEvent.cs b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEvent.cs index 039d3c9b9..02f553ed8 100644 --- a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEvent.cs +++ b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEvent.cs @@ -6,10 +6,6 @@ public override void PrepareConfig(string apiKey, string host) { base.PrepareConfig(apiKey, host); Configuration.Context = "Error 1"; - if (Application.platform == RuntimePlatform.IPhonePlayer) - { - Configuration.EnabledErrorTypes.OOMs = false; - } } public override void Run() diff --git a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEventReport.cs b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEventReport.cs index 8f7206ce3..b55201d45 100644 --- a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEventReport.cs +++ b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEventReport.cs @@ -6,10 +6,6 @@ public override void PrepareConfig(string apiKey, string host) { base.PrepareConfig(apiKey, host); Configuration.Context = "Error 2"; - if (Application.platform == RuntimePlatform.IPhonePlayer) - { - Configuration.EnabledErrorTypes.OOMs = false; - } } public override void Run() diff --git a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEventReportCallback.cs b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEventReportCallback.cs index 1764b9297..cc7397822 100644 --- a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEventReportCallback.cs +++ b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/PersistEventReportCallback.cs @@ -26,10 +26,6 @@ public override void PrepareConfig(string apiKey, string host) return true; }); - if (Application.platform == RuntimePlatform.IPhonePlayer) - { - Configuration.EnabledErrorTypes.OOMs = false; - } } public override void Run() diff --git a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/ReportMaxPersistedEvents.cs b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/ReportMaxPersistedEvents.cs index 7a22bdbda..474a28579 100644 --- a/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/ReportMaxPersistedEvents.cs +++ b/features/fixtures/maze_runner/Assets/Scripts/Scenarios/Csharp/Persistence/ReportMaxPersistedEvents.cs @@ -10,10 +10,6 @@ public override void PrepareConfig(string apiKey, string host) { _eventsCorrect = CheckForEvents(); base.PrepareConfig(apiKey, host); - if (Application.platform == RuntimePlatform.IPhonePlayer) - { - Configuration.EnabledErrorTypes.OOMs = false; - } } private bool CheckForEvents() diff --git a/features/ios/ios_native_errors.feature b/features/ios/ios_native_errors.feature index 9d6ed2a8e..1a1ebd2fc 100644 --- a/features/ios/ios_native_errors.feature +++ b/features/ios/ios_native_errors.feature @@ -8,8 +8,7 @@ Feature: iOS Native Errors And I wait for 2 seconds And On Mobile I relaunch the app And I run the game in the "StartSDKDefault" state - And I wait to receive an error - And the exception "message" equals "The app was likely terminated by the operating system while in the foreground" + And I should receive no errors Scenario: Last Run Info When I run the game in the "IosNativeException" state