Title: Two tests in 'Set-Date.Tests.ps1' consistently fails after #6145 was merged · Issue #6227 · PowerShell/PowerShell · GitHub
Open Graph Title: Two tests in 'Set-Date.Tests.ps1' consistently fails after #6145 was merged · Issue #6227 · PowerShell/PowerShell
X Title: Two tests in 'Set-Date.Tests.ps1' consistently fails after #6145 was merged · Issue #6227 · PowerShell/PowerShell
Description: Two tests in 'Set-Date.Tests.ps1' consistently fails after #6145 was merged Here is the failure: Describing Set-Date for admin [-] Set-Date should be able to set the date in an elevated context 166ms Expected: the expression not to throw...
Open Graph Description: Two tests in 'Set-Date.Tests.ps1' consistently fails after #6145 was merged Here is the failure: Describing Set-Date for admin [-] Set-Date should be able to set the date in an elevated context 166...
X Description: Two tests in 'Set-Date.Tests.ps1' consistently fails after #6145 was merged Here is the failure: Describing Set-Date for admin [-] Set-Date should be able to set the date in an elevated con...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/6227
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Two tests in 'Set-Date.Tests.ps1' consistently fails after #6145 was merged","articleBody":"Two tests in 'Set-Date.Tests.ps1' consistently fails after #6145 was merged\r\n\r\nHere is the failure:\r\n```\r\n Describing Set-Date for admin\r\n [-] Set-Date should be able to set the date in an elevated context 166ms\r\n Expected: the expression not to throw an exception. Message was {Operation not permitted}\r\n from /home/travis/build/PowerShell/PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Date.Tests.ps1:5 char:22\r\n + { Get-Date | Set-Date } | Should Not Throw\r\n + ~~~~~~~~\r\n 5: { Get-Date | Set-Date } | Should Not Throw\r\n at Invoke-LegacyAssertion, /home/travis/build/PowerShell/PowerShell/src/powershell-unix/bin/Linux/netcoreapp2.0/linux-x64/publish/Modules/Pester/4.1.1/Functions/Assertions/Should.ps1: line 190\r\n at \u003cScriptBlock\u003e, /home/travis/build/PowerShell/PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Date.Tests.ps1: line 5\r\n [-] Set-Date should be able to set the date with -Date parameter 111ms\r\n Win32Exception: Operation not permitted\r\n at \u003cScriptBlock\u003e, /home/travis/build/PowerShell/PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Date.Tests.ps1: line 11\r\n```\r\nHere is the failure history:\r\n\r\n","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2018-02-23T22:08:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6227/PowerShell/issues/6227"}
| 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:b35df7bc-486d-fa7b-e09f-616101618f85 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC08:2BB05E:2B40A73:3E7B79E:6A551AA3 |
| html-safe-nonce | dd778dfdec9206b2a2d9534bfd929f4fe340ffcd6d4b339abf094f05ef91c97e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzA4OjJCQjA1RToyQjQwQTczOjNFN0I3OUU6NkE1NTFBQTMiLCJ2aXNpdG9yX2lkIjoiMTY0MDgwMDQ2OTQ3NDY3OTQ1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f70eb2ad6420d0bb810f34117a4186332ac0ecaf1d087ca3517080bb55d47391 |
| hovercard-subject-tag | issue:299865920 |
| 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/6227/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df87d261bf10df593b91a48afca15759e9046a760085e3149ff7c9c516afa2f0/PowerShell/PowerShell/issues/6227 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df87d261bf10df593b91a48afca15759e9046a760085e3149ff7c9c516afa2f0/PowerShell/PowerShell/issues/6227 |
| og:image:alt | Two tests in 'Set-Date.Tests.ps1' consistently fails after #6145 was merged Here is the failure: Describing Set-Date for admin [-] Set-Date should be able to set the date in an elevated context 166... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daxian-dbw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 3b6d37c6470adadff4194742daaab9a817cc4980 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width