Changed forgotten StartDelayed to use TimeSpan

This commit is contained in:
lahma
2008-08-05 15:54:46 +00:00
parent 03d93151a7
commit 59d537b4ea
4 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1117,7 +1117,7 @@ namespace Spring.Scheduling.Quartz
string.Format("Will start Quartz Scheduler [{0}] in {1} seconds", sched.SchedulerName,
startDelay));
}
sched.StartDelayed((int) startDelay.TotalSeconds);
sched.StartDelayed(startDelay);
}
}

View File

@@ -198,7 +198,7 @@ namespace Spring.Scheduling.Quartz
// set expectations
TestSchedulerFactory.MockScheduler.JobFactory = null;
LastCall.IgnoreArguments();
TestSchedulerFactory.MockScheduler.StartDelayed(2);
TestSchedulerFactory.MockScheduler.StartDelayed(TimeSpan.FromSeconds(2));
TestSchedulerFactory.Mockery.ReplayAll();
factory.SchedulerFactoryType = typeof(TestSchedulerFactory);