mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
New: automatically switch back to master if current branch is invalid
This commit is contained in:
@@ -23,6 +23,13 @@ namespace NzbDrone.Core.Test.UpdateTests
|
||||
Subject.GetLatestUpdate("master", new Version(2, 0)).Should().NotBeNull();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_get_master_if_branch_doesnt_exit()
|
||||
{
|
||||
UseRealHttp();
|
||||
Subject.GetLatestUpdate("master2", new Version(2, 0)).Should().NotBeNull();
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public void should_get_recent_updates()
|
||||
@@ -37,6 +44,7 @@ namespace NzbDrone.Core.Test.UpdateTests
|
||||
recent.Should().OnlyContain(c => c.ReleaseDate.Year == 2014);
|
||||
recent.Should().OnlyContain(c => c.Changes.New != null);
|
||||
recent.Should().OnlyContain(c => c.Changes.Fixed != null);
|
||||
recent.Should().OnlyContain(c => c.Branch == branch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user