Fixed unit tests

pull/3338/head
tidusjar 5 years ago
parent 4bf66ef031
commit 585bd0aab1

@ -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)'

@ -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<string>(), It.IsAny<string>(), It.IsAny<string>()))
_lidarrApi.Setup(x => x.GetArtistByForeignId(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>(), CancellationToken.None))
.ReturnsAsync(new ArtistResult
{
images = new Image[]

Loading…
Cancel
Save