Title: Update macOS logging tests to use wait logic instead of Start-Sleep · Issue #7462 · PowerShell/PowerShell · GitHub
Open Graph Title: Update macOS logging tests to use wait logic instead of Start-Sleep · Issue #7462 · PowerShell/PowerShell
X Title: Update macOS logging tests to use wait logic instead of Start-Sleep · Issue #7462 · PowerShell/PowerShell
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-...
Open Graph 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 capture...
X 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 capture...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/7462
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update macOS logging tests to use wait logic instead of Start-Sleep","articleBody":"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.\r\n\r\nA Start-Sleep workaround has been added but more reliable wait logic should be considered in either the tests or in PSSysLog.psm1.\r\n\r\nThe tests in question include:\r\n\r\n'Verifies basic logging with no customizations' - expects 2 log items and should wait with a timeout for two items.\r\n\r\n'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.\r\n\r\nIn 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","author":{"url":"https://github.com/dantraMSFT","@type":"Person","name":"dantraMSFT"},"datePublished":"2018-08-06T19:24:12Z","url":"https://github.com/PowerShell/PowerShell/issues/7462"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5bf2a896-83f1-b78c-c0a1-9c152eb3669e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB62:2F6606:276A063:371649D:6AFD52DE |
| html-safe-nonce | f27ac1038e9f2b63e03987efb8d7e91f4273937044510b1b621c61c2a139409f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjYyOjJGNjYwNjoyNzZBMDYzOjM3MTY0OUQ6NkFGRDUyREUiLCJ2aXNpdG9yX2lkIjoiNTU3MzMyNTkwNzg1MTgyNTg4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b6ae3ef964e4e81f74c2b10d8fa6bf0fb790d732036278641ce40d484829168d |
| hovercard-subject-tag | issue:348051305 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/7462/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6988ef5c23a477494bf364975b2838cea15671708bccd0f11fb9fd2cbb12d2fc/PowerShell/PowerShell/issues/7462 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6988ef5c23a477494bf364975b2838cea15671708bccd0f11fb9fd2cbb12d2fc/PowerShell/PowerShell/issues/7462 |
| og:image:alt | 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 capture... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dantraMSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width