News for hackers. Stuff that matters.
Re:10 years ago, someone wrote a test for servo that include... by Bratmon on Monday April 20, 2026 @02:24PM (#47838521)
Doesn't that just turn bugs in test in n years into bugs in prod in n years?

That seems like a downgrade to me!

Re:10 years ago, someone wrote a test for servo that include... by loeg on Monday April 20, 2026 @02:52PM (#47838885)
No, because prod doesn't have hardcoded cookies baked into it?
Re:10 years ago, someone wrote a test for servo that include... by AndrewDucker on Monday April 20, 2026 @03:22PM (#47839262)
If you always test with a date of 1/1/2000 then you don't know that your choice fails in 2039.
Re:10 years ago, someone wrote a test for servo that include... by vocx2tx on Monday April 20, 2026 @04:15PM (#47839906)
These fake-time environments let you set the time, so you can test how the code will behave in 2039 without waiting for 13 years. For Go's synctest, 1-1-2000 is just the default initial value for now().