diff --git a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestGeneration.Etw.cs b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestGeneration.Etw.cs index 6b1e362c74d6f7..873def84cadd73 100644 --- a/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestGeneration.Etw.cs +++ b/src/libraries/System.Diagnostics.Tracing/tests/BasicEventSourceTest/TestsManifestGeneration.Etw.cs @@ -34,8 +34,10 @@ public partial class TestsManifestGeneration [ConditionalFact(nameof(IsProcessElevatedAndNotWindowsNanoServerAndRemoteExecutorSupported))] public void Test_EventSource_EtwManifestGeneration() { + RemoteInvokeOptions options = new RemoteInvokeOptions { TimeOut = 300_000 /* ms */ }; RemoteExecutor.Invoke(() => { + RemoteInvokeOptions localOptions = new RemoteInvokeOptions { TimeOut = 300_000 /* ms */ }; using (RemoteInvokeHandle handle = RemoteExecutor.Invoke(() => { var es = new SimpleEventSource(); @@ -44,7 +46,7 @@ public void Test_EventSource_EtwManifestGeneration() es.WriteSimpleInt(i); Thread.Sleep(100); } - })) + }, localOptions)) { var etlFileName = @"file.etl"; var tracesession = new TraceEventSession("testname", etlFileName); @@ -72,7 +74,7 @@ public void Test_EventSource_EtwManifestGeneration() } Assert.True(manifestExists); } - }).Dispose(); + }, options).Dispose(); } [ConditionalFact(nameof(IsProcessElevatedAndNotWindowsNanoServerAndRemoteExecutorSupported))]