mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 15:00:54 +00:00
Don't start integration tests too soon
This commit is contained in:
parent
cb62775e6b
commit
f1ba8a0d27
3 changed files with 9 additions and 0 deletions
|
@ -11,6 +11,8 @@ public class ArtistEditorFixture : IntegrationTest
|
|||
{
|
||||
private void GivenExistingArtist()
|
||||
{
|
||||
WaitForCompletion(() => Profiles.All().Count > 0);
|
||||
|
||||
foreach (var name in new[] { "Alien Ant Farm", "Kiss" })
|
||||
{
|
||||
var newArtist = Artist.Lookup(name).First();
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using Lidarr.Http.ClientSchema;
|
||||
using NLog;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Core.Indexers.Newznab;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
|
@ -34,6 +35,9 @@ protected override void StartTestTarget()
|
|||
|
||||
protected override void InitializeTestTarget()
|
||||
{
|
||||
// Make sure tasks have been initialized so the config put below doesn't cause errors
|
||||
WaitForCompletion(() => Tasks.All().SelectList(x => x.TaskName).Contains("RssSync"));
|
||||
|
||||
Indexers.Post(new Lidarr.Api.V1.Indexers.IndexerResource
|
||||
{
|
||||
EnableRss = false,
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
using Lidarr.Api.V1.History;
|
||||
using Lidarr.Api.V1.Profiles.Quality;
|
||||
using Lidarr.Api.V1.RootFolders;
|
||||
using Lidarr.Api.V1.System.Tasks;
|
||||
using Lidarr.Api.V1.Tags;
|
||||
using Microsoft.AspNetCore.SignalR.Client;
|
||||
using NLog;
|
||||
|
@ -38,6 +39,7 @@ public abstract class IntegrationTestBase
|
|||
|
||||
public ClientBase<BlacklistResource> Blacklist;
|
||||
public CommandClient Commands;
|
||||
public ClientBase<TaskResource> Tasks;
|
||||
public DownloadClientClient DownloadClients;
|
||||
public AlbumClient Albums;
|
||||
public TrackClient Tracks;
|
||||
|
@ -103,6 +105,7 @@ protected virtual void InitRestClients()
|
|||
|
||||
Blacklist = new ClientBase<BlacklistResource>(RestClient, ApiKey);
|
||||
Commands = new CommandClient(RestClient, ApiKey);
|
||||
Tasks = new ClientBase<TaskResource>(RestClient, ApiKey, "system/task");
|
||||
DownloadClients = new DownloadClientClient(RestClient, ApiKey);
|
||||
Albums = new AlbumClient(RestClient, ApiKey);
|
||||
Tracks = new TrackClient(RestClient, ApiKey);
|
||||
|
|
Loading…
Reference in a new issue