1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-20 18:02:44 +01:00

Ignore SQLiteException tests on Azure

This commit is contained in:
Qstick 2022-09-24 20:16:19 -05:00
parent 9db6289693
commit 9b3770a018

View File

@ -1,5 +1,4 @@
using System;
using System.Data.SQLite;
using System.Globalization;
using System.Linq;
using FluentAssertions;
@ -19,10 +18,11 @@ public class SentryTargetFixture : TestBase
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 @@ public class SentryTargetFixture : TestBase
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(),