runtime: [Regression] Test failed: System.ServiceProcess.Tests.ServiceBaseTests / TestOnExecuteCustomCommand

Failure:

Assert.Equal() Failure
                                   ↓ (pos 44)
Expected: ···ommand command=128\\r\
OnStop\\r\

Actual:   ···ommand command=128\\r\

                                   ↑ (pos 44)

History of failures

Day Build OS Details
8/14 20170814.02 Win8.1 pos 2
11/1 20171101.01 Win10 pos 17
11/4 20171104.02 Win10 pos 46
11/9 20171109.05 Win8.1 pos 17
11/21 20171121.02 WIn7 pos 46
12/10 20171210.03 Win8.1 pos 17
12/12 20171212.03 Win7 pos 46
1/9 20180109.01 Win10 2x failures (pos 44) - link
1/9 20180109.02 Win10 pos 44 - link
1/11 20180111.01 Win7 pos 44 - link
1/11 20180111.03 Win10 2x pos 44 - link
1/12 20180112.02 Win10 pos 44 - link
1/13 20180113.03 Win7 pos 44 - link
1/15 20180115.04 Win10 pos 44 - link
1/16 20180116.01 Win10 pos 44 - link
1/16 20180116.06 Win7 & Win10 3x pos 44 - link
1/17 20180117.03 Win10 pos 44 - link
1/19 20180119.02 Win10 pos 44 - link
1/21 20180121.01 Win8.1 pos 44 - link
1/21 20180121.02 Win10 pos 44 - link
1/22 20180122.02 Win10 pos 44 - link
1/23 20180123.01 Win10 pos 44 - link
1/24 20180124.02 Win8 + 3x Win10 4x pos 44 - link
1/24 20180124.06 Win10 pos 44 - link
1/25 20180125.01 Win10 pos 44 - link
1/25 20180125.06 Win10 pos 44 - link
1/26 20180126.03 Win7 pos 44 - link
1/27 20180127.01 Win7 pos 44 - link
1/30 20180130.01 Win10 pos 44 - link

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

Thank you for the fix!

@karelz yeah I am working on it to get it fixed using named pipe. Is any other test is also failing from this class ?

@Anipik yes correct place. I don’t know why it seems it’s not on reference source. Yes, minimal test please. Note that the events written by a test service can be found because “source” in the event log is the service name.

We should make it write to the event log regardless. @Anipik could you please fix ServiceBase WriteLogEntry to match Desktop, which writes to the event log. LMK if you need a pointer to the desktop sources.