Skip to content

Commit a76a712

Browse files
authored
Fix Analytics DoubleCall test (#1378)
1 parent 7f10612 commit a76a712

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

analytics/testapp/Assets/Firebase/Sample/Analytics/UIHandlerAutomated.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ Task TestCheckAndFixDependenciesDoubleCall() {
147147
}
148148
};
149149
List<Task> tasks = new List<Task>();
150-
tasks.Add(Firebase.FirebaseApp.CheckAndFixDependenciesAsync()
151-
.ContinueWithOnMainThread(taskHandler));
152150
try {
151+
// Put both calls in a try catch, since either can throw
152+
tasks.Add(Firebase.FirebaseApp.CheckAndFixDependenciesAsync()
153+
.ContinueWithOnMainThread(taskHandler));
153154
tasks.Add(Firebase.FirebaseApp.CheckAndFixDependenciesAsync()
154155
.ContinueWithOnMainThread(taskHandler));
155156
} catch (System.InvalidOperationException) {

0 commit comments

Comments
 (0)