Skip to content

Commit

Permalink
tmp: check if *not* initializing dotnet sentry helps with the flaky CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Mar 3, 2022
1 parent 1ebc6ca commit e2d8a23
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions samples/unity-of-bugs/Assets/Scripts/SmokeTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit e2d8a23

Please sign in to comment.