From 9b3770a018a2fd9f6a5af71930bbb2a2180c2cce Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 24 Sep 2022 20:16:19 -0500 Subject: [PATCH] Ignore SQLiteException tests on Azure --- .../InstrumentationTests/SentryTargetFixture.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Common.Test/InstrumentationTests/SentryTargetFixture.cs b/src/NzbDrone.Common.Test/InstrumentationTests/SentryTargetFixture.cs index 0d6ec6d0f..e4678bb4c 100644 --- a/src/NzbDrone.Common.Test/InstrumentationTests/SentryTargetFixture.cs +++ b/src/NzbDrone.Common.Test/InstrumentationTests/SentryTargetFixture.cs @@ -1,5 +1,4 @@ using System; -using System.Data.SQLite; using System.Globalization; using System.Linq; using FluentAssertions; @@ -19,10 +18,11 @@ namespace NzbDrone.Common.Test.InstrumentationTests private static LogLevel[] SentryLevels = LogLevel.AllLevels.Where(x => x >= LogLevel.Error).ToArray(); private static LogLevel[] OtherLevels = AllLevels.Except(SentryLevels).ToArray(); + // TODO: SQLiteException filtering tests don't work on linux-86 and alpine customer Azure agents due to sqlite library not being loaded up, pass local private static Exception[] FilteredExceptions = new Exception[] { + // new SQLiteException(SQLiteErrorCode.Locked, "database is locked"), new UnauthorizedAccessException(), - new SQLiteException(SQLiteErrorCode.Locked, "database is locked"), new AggregateException(new Exception[] { new UnauthorizedAccessException(), @@ -32,7 +32,7 @@ namespace NzbDrone.Common.Test.InstrumentationTests private static Exception[] NonFilteredExceptions = new Exception[] { - new SQLiteException(SQLiteErrorCode.Error, "it's borked"), + // new SQLiteException(SQLiteErrorCode.Error, "it's borked"), new AggregateException(new Exception[] { new UnauthorizedAccessException(),