From 585bd0aab1e563330317935c5c3bb2d457b0e3aa Mon Sep 17 00:00:00 2001 From: tidusjar Date: Mon, 16 Dec 2019 14:10:56 +0000 Subject: [PATCH] Fixed unit tests --- azure-pipelines.yml | 13 ++++++++----- .../Engine/V2/MusicSearchEngineV2Tests.cs | 3 ++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f2352a798..0cee56ca1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,16 +4,19 @@ # https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core trigger: -- master -- feature/v4 -- develop + branches: + include: + - feature/* + exclude: + - develop + - master variables: solution: '**/*.sln' testProj: '**/*.Tests.csproj' csProj: '**/*.csproj' buildConfiguration: 'Release' - publishLocation: '$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp2.2' + publishLocation: '$(Build.SourcesDirectory)/src/Ombi/bin/Release/netcoreapp3.0' pool: vmImage: 'ubuntu-latest' @@ -27,7 +30,7 @@ steps: - task: CmdLine@2 inputs: script: | - cd src/Ombi/bin/Release/netcoreapp2.2 + cd src/Ombi/bin/Release/netcoreapp3.0 ls workingDirectory: '$(Build.SourcesDirectory)' diff --git a/src/Ombi.Core.Tests/Engine/V2/MusicSearchEngineV2Tests.cs b/src/Ombi.Core.Tests/Engine/V2/MusicSearchEngineV2Tests.cs index 1871141a2..50ab63346 100644 --- a/src/Ombi.Core.Tests/Engine/V2/MusicSearchEngineV2Tests.cs +++ b/src/Ombi.Core.Tests/Engine/V2/MusicSearchEngineV2Tests.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Security.Principal; using System.Threading.Tasks; using System.Linq; +using System.Threading; using AutoFixture; using Hqub.MusicBrainz.API.Entities; using Moq; @@ -172,7 +173,7 @@ namespace Ombi.Core.Tests.Engine.V2 ApiKey = "dasdsa", Ip = "192.168.1.7" }); - _lidarrApi.Setup(x => x.GetArtistByForeignId(It.IsAny(), It.IsAny(), It.IsAny())) + _lidarrApi.Setup(x => x.GetArtistByForeignId(It.IsAny(), It.IsAny(), It.IsAny(), CancellationToken.None)) .ReturnsAsync(new ArtistResult { images = new Image[]