Skip to content

Commit 398bec0

Browse files
authored
Merge pull request #522 from bugsnag/maxPersistedEventsFix
fix(CI): give requests more time to fix ordering issues
2 parents 4c83721 + 8c7eed3 commit 398bec0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

features/desktop/persistence.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ Feature: Unity Persistence
9292
When I run the game in the "ClearBugsnagCache" state
9393
And I wait for 5 seconds
9494
And I run the game in the "MaxPersistEvents" state
95-
And I wait for 5 seconds
95+
And I wait for 12 seconds
9696
And I run the game in the "(noop)" state
97+
And I wait for 5 seconds
9798
And I wait to receive 4 errors
9899
And the exception "message" equals "Event 1"
99100
And I discard the oldest error

features/fixtures/maze_runner/Assets/Scripts/Main.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ void PrepareConfigForScenario(Configuration config, string scenario)
144144
config.AutoDetectErrors = true;
145145
config.AutoTrackSessions = false;
146146
config.Endpoints = new EndpointConfiguration("https://notify.def-not-bugsnag.com", "https://notify.def-not-bugsnag.com");
147+
_closeTime = 12;
147148
break;
148149
case "PersistEvent":
149150
config.AutoDetectErrors = true;
@@ -669,7 +670,6 @@ void RunScenario(string scenario)
669670
break;
670671
default:
671672
throw new ArgumentException("Unable to run unexpected scenario: " + scenario);
672-
break;
673673
}
674674
}
675675

@@ -678,7 +678,7 @@ private IEnumerator NotifyPersistedEvents()
678678
for (int i = 0; i < 5; i++)
679679
{
680680
Bugsnag.Notify(new Exception("Event " + i));
681-
yield return new WaitForSeconds(0.75f);
681+
yield return new WaitForSeconds(2f);
682682
}
683683
}
684684

0 commit comments

Comments
 (0)