removes duplicate test

This commit is contained in:
Shannon
2015-04-08 17:57:00 +10:00
parent 24dc8309f1
commit cc804bd3bd
2 changed files with 2 additions and 14 deletions

View File

@@ -161,19 +161,7 @@ namespace Umbraco.Tests.Scheduling
await runner; // wait for the entire runner operation to complete
Assert.Throws<InvalidOperationException>(() => runner.Add(new MyTask()));
}
[Test]
public async void Startup_IsRunning()
{
using (var runner = new BackgroundTaskRunner<IBackgroundTask>(new BackgroundTaskRunnerOptions()))
{
Assert.IsFalse(runner.IsRunning);
runner.StartUp();
Assert.IsTrue(runner.IsRunning);
await runner; // wait for the entire runner operation to complete
}
}
[Test]
public void Startup_KeepAlive_IsRunning()
{

View File

@@ -49,7 +49,7 @@ namespace Umbraco.Web.Scheduling
/// </summary>
public bool IsCompleted
{
get { return _runner.IsRunning == false && _tcs.Task.IsCompleted; }
get { return _runner.IsRunning == false; }
}
public void OnCompleted(Action continuation)