Use dotnet 3.1 compat syntax

This commit is contained in:
Ferenc Hammerl
2023-01-30 19:45:27 +00:00
parent 1cb1fc55d9
commit 2f5110be73

View File

@@ -135,7 +135,7 @@ namespace GitHub.Runner.Common.Tests
[Trait("Category", "Common")] [Trait("Category", "Common")]
public async Task SetTestEnvWithNullInKey() public async Task SetTestEnvWithNullInKey()
{ {
using (TestHostContext hc = new(this)) using (TestHostContext hc = new TestHostContext(this))
{ {
Tracing trace = hc.GetTrace(); Tracing trace = hc.GetTrace();
@@ -170,7 +170,7 @@ namespace GitHub.Runner.Common.Tests
[Trait("Category", "Common")] [Trait("Category", "Common")]
public async Task SetTestEnvWithNullInValue() public async Task SetTestEnvWithNullInValue()
{ {
using (TestHostContext hc = new(this)) using (TestHostContext hc = new TestHostContext(this))
{ {
Tracing trace = hc.GetTrace(); Tracing trace = hc.GetTrace();