From e2d8a23d5ff6a70bf2d6eb65f27e76bb60d4db58 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Thu, 3 Mar 2022 20:02:17 +0100 Subject: [PATCH] tmp: check if *not* initializing dotnet sentry helps with the flaky CI --- samples/unity-of-bugs/Assets/Scripts/SmokeTester.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/samples/unity-of-bugs/Assets/Scripts/SmokeTester.cs b/samples/unity-of-bugs/Assets/Scripts/SmokeTester.cs index d30ebdd5a..ed00af4c2 100644 --- a/samples/unity-of-bugs/Assets/Scripts/SmokeTester.cs +++ b/samples/unity-of-bugs/Assets/Scripts/SmokeTester.cs @@ -119,7 +119,10 @@ public static void InitSentry(SentryUnityOptions options, bool requireNative = t #endif Debug.Log("SMOKE TEST: SentryUnity Init."); - SentryUnity.Init(options); + if (!requireNative) + { + SentryUnity.Init(options); + } Debug.Log("SMOKE TEST: SentryUnity Init OK."); } @@ -189,9 +192,9 @@ public static void SmokeTestCrash() InitSentry(new SentryUnityOptions()); - const int sleepMs = 5000; - Debug.Log($"SMOKE TEST: Sleep for {sleepMs} ms to avoid failure caused by the background data sync during sentry init."); - Thread.Sleep(sleepMs); + // const int sleepMs = 5000; + // Debug.Log($"SMOKE TEST: Sleep for {sleepMs} ms to avoid failure caused by the background data sync during sentry init."); + // Thread.Sleep(sleepMs); AddContext();