Skip to content

Commit

Permalink
Some more misc cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
juliobbv committed Dec 6, 2019
1 parent 49ccba8 commit 44fac93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/Runner.Worker/Variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ public Variables(IHostContext hostContext, IDictionary<string, VariableValue> co

public string System_PhaseDisplayName => Get(Constants.Variables.System.PhaseDisplayName);

public string System_TFCollectionUrl => Get(WellKnownDistributedTaskVariables.TFCollectionUrl);

public string Get(string name)
{
Variable variable;
Expand Down
8 changes: 4 additions & 4 deletions src/Test/L0/Listener/RunnerL0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ public async void TestRunAsync()
else
{
//Act
hc.ShutdownRunner(ShutdownReason.UserCancelled); //stop Agent
hc.ShutdownRunner(ShutdownReason.UserCancelled); //stop Runner

//Assert
Task[] taskToWait2 = { runnerTask, Task.Delay(2000) };
//wait for the Agent to exit
//wait for the runner to exit
await Task.WhenAny(taskToWait2);

Assert.True(runnerTask.IsCompleted, $"{nameof(runner.ExecuteCommand)} timed out.");
Expand All @@ -164,9 +164,9 @@ public async void TestRunAsync()

public static TheoryData<string[], bool, Times> RunAsServiceTestData = new TheoryData<string[], bool, Times>()
{
// staring with run command, configured as run as service, should start the agent
// staring with run command, configured as run as service, should start the runner
{ new [] { "run" }, true, Times.Once() },
// starting with no argument, configured not to run as service, should start agent interactively
// starting with no argument, configured not to run as service, should start runner interactively
{ new [] { "run" }, false, Times.Once() }
};
[Theory]
Expand Down

0 comments on commit 44fac93

Please # to comment.