Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing SetCookies_Success test #53932

Merged
merged 2 commits into from
Jun 9, 2021
Merged

Fix failing SetCookies_Success test #53932

merged 2 commits into from
Jun 9, 2021

Conversation

ViktorHofer
Copy link
Member

See #53931

@ghost
Copy link

ghost commented Jun 9, 2021

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

See #53931

Author: ViktorHofer
Assignees: -
Labels:

area-System.Net

Milestone: -

@akoeplinger
Copy link
Member

akoeplinger commented Jun 9, 2021

The reason why it fails is because of this:

new Cookie("name98", "value98", "/", ".uri.com") { Expires = new DateTime(2021, 6, 9, 10, 18, 14) }

Can you bump the Expires to some later date? 😄
It needs a few small changes to the expected value in the test.

@ViktorHofer
Copy link
Member Author

WHAT THA HELL. Best test failure EVER 😂😂😂

@ViktorHofer ViktorHofer changed the title Disable flaky SetCookies_Success test Fix flaky SetCookies_Success test Jun 9, 2021
@ViktorHofer ViktorHofer changed the title Fix flaky SetCookies_Success test Fix failing SetCookies_Success test Jun 9, 2021
@ghost
Copy link

ghost commented Jun 9, 2021

Hello @ViktorHofer!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@@ -125,11 +125,11 @@ public static IEnumerable<object[]> SetCookiesData()
yield return new object[]
{
u,
"name98=value98; path=/; domain=.uri.com; expires=Wed, 09 Jun 2021 10:18:14 GMT, name99=value99",
"name98=value98; path=/; domain=.uri.com; expires=Wed, 09 Jun 2050 10:18:14 GMT, name99=value99",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll be really excited if this test is still running in 29 years and fails then.

@ViktorHofer
Copy link
Member Author

Merging to unblock CI.

@ViktorHofer ViktorHofer merged commit 3852a77 into main Jun 9, 2021
@ViktorHofer ViktorHofer deleted the ViktorHofer-patch-2 branch June 9, 2021 15:46
danmoseley pushed a commit to danmoseley/runtime that referenced this pull request Jun 10, 2021
* Fix failing SetCookies_Success test
danmoseley added a commit that referenced this pull request Jun 10, 2021
* Fix failing SetCookies_Success test

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
@ghost ghost locked as resolved and limited conversation to collaborators Jul 9, 2021
@karelz karelz added this to the 6.0.0 milestone Jul 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants