Skip to content

Update macOS logging tests to use wait logic instead of Start-Sleep #7462

Closed

Description

The macOS logging tests launch a PowerShell instance and examine the logs after the launched process exits. There is a possible race condition between the process exiting and the logging is captured that cause the tests to fail.

A Start-Sleep workaround has been added but more reliable wait logic should be considered in either the tests or in PSSysLog.psm1.

The tests in question include:

'Verifies basic logging with no customizations' - expects 2 log items and should wait with a timeout for two items.

'Verifies logging level filtering works' - currently expects no log items. Consider updating to execute a script that forces at least one warning or error log item.

In addition, the logid should be explicitly used to verify the expected count since Travis was seeing other non-powershell log entries produced in the powershell process

Activity

  1. dantraMSFT commented on Aug 10, 2018

    @dantraMSFT
    ContributorAuthor

    Note that any changes are dependent on #7490

  2. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  3. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  4. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  5. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Resolution-No ActivityIssue has had no activity for 6 months or moreWG-Quality-Testissues in a test or in test infrastructure

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions