Ignore SQLiteException tests on Azure

pull/7634/head v4.2.4.6635
Qstick 2 years ago
parent 9db6289693
commit 9b3770a018

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

Loading…
Cancel
Save