Skip to content

Commit bfce94e

Browse files
committed
.
1 parent 081c972 commit bfce94e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Test/L0/Listener/RunnerL0.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public async Task TestRunAsync()
126126

127127
});
128128

129-
hc.EnqueueInstance<IJobDispatcher>(_jobDispatcher.Object);
129+
hc.SetSingleton<IJobDispatcher>(_jobDispatcher.Object);
130130

131131
_configStore.Setup(x => x.IsServiceConfigured()).Returns(false);
132132
//Act
@@ -309,7 +309,7 @@ public async Task TestRunOnce()
309309

310310
});
311311

312-
hc.EnqueueInstance<IJobDispatcher>(_jobDispatcher.Object);
312+
hc.SetSingleton<IJobDispatcher>(_jobDispatcher.Object);
313313

314314
_configStore.Setup(x => x.IsServiceConfigured()).Returns(false);
315315
//Act
@@ -413,7 +413,7 @@ public async Task TestRunOnceOnlyTakeOneJobMessage()
413413

414414
});
415415

416-
hc.EnqueueInstance<IJobDispatcher>(_jobDispatcher.Object);
416+
hc.SetSingleton<IJobDispatcher>(_jobDispatcher.Object);
417417

418418
_configStore.Setup(x => x.IsServiceConfigured()).Returns(false);
419419
//Act
@@ -503,7 +503,7 @@ public async Task TestRunOnceHandleUpdateMessage()
503503

504504
});
505505

506-
hc.EnqueueInstance<IJobDispatcher>(_jobDispatcher.Object);
506+
hc.SetSingleton<IJobDispatcher>(_jobDispatcher.Object);
507507

508508
_configStore.Setup(x => x.IsServiceConfigured()).Returns(false);
509509
//Act
@@ -578,7 +578,7 @@ public async Task TestReportAuthMigrationTelemetry()
578578
hc.SetSingleton<IConfigurationStore>(_configStore.Object);
579579
hc.SetSingleton<ICredentialManager>(_credentialManager.Object);
580580
hc.EnqueueInstance<IErrorThrottler>(_acquireJobThrottler.Object);
581-
hc.EnqueueInstance<IJobDispatcher>(_jobDispatcher.Object);
581+
hc.SetSingleton<IJobDispatcher>(_jobDispatcher.Object);
582582

583583
runner.Initialize(hc);
584584
var settings = new RunnerSettings
@@ -679,7 +679,7 @@ public async Task TestRunnerJobRequestMessageFromPipeline()
679679
hc.SetSingleton<ICredentialManager>(_credentialManager.Object);
680680
hc.EnqueueInstance<IErrorThrottler>(_acquireJobThrottler.Object);
681681
hc.EnqueueInstance<IActionsRunServer>(_actionsRunServer.Object);
682-
hc.EnqueueInstance<IJobDispatcher>(_jobDispatcher.Object);
682+
hc.SetSingleton<IJobDispatcher>(_jobDispatcher.Object);
683683

684684
runner.Initialize(hc);
685685
var settings = new RunnerSettings
@@ -780,7 +780,7 @@ public async Task TestRunnerJobRequestMessageFromRunService()
780780
hc.SetSingleton<ICredentialManager>(_credentialManager.Object);
781781
hc.EnqueueInstance<IErrorThrottler>(_acquireJobThrottler.Object);
782782
hc.EnqueueInstance<IRunServer>(_runServer.Object);
783-
hc.EnqueueInstance<IJobDispatcher>(_jobDispatcher.Object);
783+
hc.SetSingleton<IJobDispatcher>(_jobDispatcher.Object);
784784

785785
runner.Initialize(hc);
786786
var settings = new RunnerSettings
@@ -880,7 +880,7 @@ public async Task TestRunnerJobRequestMessageFromRunService_AuthMigrationFallbac
880880
hc.SetSingleton<ISelfUpdater>(_updater.Object);
881881
hc.SetSingleton<ICredentialManager>(_credentialManager.Object);
882882
hc.EnqueueInstance<IErrorThrottler>(_acquireJobThrottler.Object);
883-
hc.EnqueueInstance<IJobDispatcher>(_jobDispatcher.Object);
883+
hc.SetSingleton<IJobDispatcher>(_jobDispatcher.Object);
884884
hc.EnqueueInstance<IRunServer>(_runServer.Object);
885885
hc.EnqueueInstance<IRunServer>(_runServer.Object);
886886

0 commit comments

Comments
 (0)