Address code review feedback: remove unused import and use named constants
Co-authored-by: TingluoHuang <[email protected]>
This commit is contained in:
co-authored by
TingluoHuang
parent
5ba673a014
commit
4b97e637f5
@@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using GitHub.DistributedTask.WebApi;
|
using GitHub.DistributedTask.WebApi;
|
||||||
@@ -1111,10 +1110,13 @@ namespace GitHub.Runner.Common.Tests.Listener
|
|||||||
Directory.CreateDirectory(parentPath);
|
Directory.CreateDirectory(parentPath);
|
||||||
File.WriteAllText(workPath, "blocking file content");
|
File.WriteAllText(workPath, "blocking file content");
|
||||||
|
|
||||||
|
const int testPoolId = 12345;
|
||||||
|
const int testAgentId = 67890;
|
||||||
|
|
||||||
var runnerConfig = new RunnerSettings
|
var runnerConfig = new RunnerSettings
|
||||||
{
|
{
|
||||||
PoolId = 12345,
|
PoolId = testPoolId,
|
||||||
AgentId = 67890
|
AgentId = testAgentId
|
||||||
};
|
};
|
||||||
|
|
||||||
_configurationManager.Setup(m => m.LoadSettings()).Returns(runnerConfig);
|
_configurationManager.Setup(m => m.LoadSettings()).Returns(runnerConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user