Skip to content

Unit test fails on Github Actions: TestPlugins.testServices #159

@end2endzone

Description

@end2endzone

Describe the bug
Using test TestPlugins.testServices fails on Github Action.

Build run: https://github.com/end2endzone/ShellAnything/actions/runs/10343650050

[ RUN      ] TestPlugins.testServices
Found property 'sa_plugin_services.WinDefend.status' with value 'running'.
Found property 'sa_plugin_services.Dhcp.status' with value 'running'.
Found property 'sa_plugin_services.Dnscache.status' with value 'running'.
Found property 'sa_plugin_services.OneDrive_Updater_Service.status' with value ''.
Found property 'sa_plugin_services.wuauserv.status' with value 'stopped'.
Found property 'sa_plugin_services.Fax.status' with value ''.
Found property 'sa_plugin_services.msiserver.status' with value 'running'.
Found property 'sa_plugin_services.WebClient.status' with value ''.
Found property 'sa_plugin_services.defragsvc.status' with value 'stopped'.
Found property 'sa_plugin_services.gupdate.status' with value ''.
Found property 'sa_plugin_services.aaaa.status' with value ''.
D:\a\ShellAnything\ShellAnything\src\tests\TestPlugins.cpp(3[37](https://github.com/end2endzone/ShellAnything/actions/runs/10343650050/job/28628036584#step:26:38)): error:       Expected: STATUS_STOPPED
      Which is: "stopped"
To be equal to: pmgr.GetProperty("sa_plugin_services.gupdate.status")
      Which is: ""
[  FAILED  ] TestPlugins.testServices (1510 ms)

To Reproduce
Run unit test on Github Action runners

Expected behavior
All tests should be successful.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment
Github Action configuration:

Current runner version: '2.317.0'
Operating System
  Microsoft Windows Server [2](https://github.com/end2endzone/ShellAnything/actions/runs/10343650050/job/28628036584#step:1:2)022
  10.0.20348
  Datacenter
Runner Image
  Image: windows-2022
  Version: 20240807.2.0
  Included Software: https://github.com/actions/runner-images/blob/win22/20240807.2/images/windows/Windows2022-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240807.2
Runner Image Provisioner
  2.0.[3](https://github.com/end2endzone/ShellAnything/actions/runs/10343650050/job/28628036584#step:1:3)74.1

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions