Skip to content

TestOnStartWithArgsThenStop Times out #34801

@Anipik

Description

@Anipik
      System.ServiceProcess.Tests.ServiceBaseTests.TestOnStartWithArgsThenStop [FAIL]
        System.AggregateException : One or more errors occurred. (Task timed out after 00:01:00)
        ---- System.TimeoutException : Task timed out after 00:01:00
        Stack Trace:
          C:\git\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs(1851,0): at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
          C:\git\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs(471,0): at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
          C:\git\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs(440,0): at System.Threading.Tasks.Task`1.get_Result()
          C:\git\runtime\src\libraries\System.ServiceProcess.ServiceController\tests\TestServiceProvider.cs(89,0): at System.ServiceProcess.Tests.TestServiceProvider.GetByte()
          C:\git\runtime\src\libraries\System.ServiceProcess.ServiceController\tests\ServiceBaseTests.cs(99,0): at System.ServiceProcess.Tests.ServiceBaseTests.TestOnStartWithArgsThenStop()
          ----- Inner Stack Trace -----
          C:\git\runtime\src\libraries\Common\tests\System\Threading\Tasks\TaskTimeoutExtensions.cs(42,0): at System.Threading.Tasks.TaskTimeoutExtensions.TimeoutAfter(Task task, TimeSpan timeout)
          C:\git\runtime\src\libraries\System.ServiceProcess.ServiceController\tests\TestServiceProvider.cs(85,0): at System.ServiceProcess.Tests.TestServiceProvider.ReadPipeAsync()
    Finished:    System.ServiceProcess.ServiceController.Tests
  === TEST EXECUTION SUMMARY ===

The start signal is not being send to the named pipe and reading side is keep on waiting in it. Tested it with removing the wait.

cc @danmosemsft @ericstj

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions