Hacker News new | ask | show | jobs
by marklar423 542 days ago
I worked on a large makeup website for a while, and it was common for us to place test orders and subsequently cancel them. The dev doing it usually put their name and the office address as the shipping address.

One day, we got a big box of makeup at the office - turns out their warehouse had gotten so fast that in the time it took us to cancel the order they had already picked & shipped it.

After that we put "TEST DO NOT SHIP TEST DO NOT SHIP" as the shipping name and "123 Fake St" as the address to try and avert this scenario, which seemed to work until we could modify the system to hide those orders from the warehouse entirely.

1 comments

One day, we got a big box of makeup at the office

now that's a true end-to-end test.

Literally a real-world race condition in the end to end tests.
Oh my, thats funny.

?id=48391&test=lol