Ignore SQLiteException tests on Azure

This commit is contained in:
Qstick 2022-09-24 20:16:19 -05:00
parent 9db6289693
commit 9b3770a018
1 changed files with 3 additions and 3 deletions

View File

@ -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(),