5 ms·
I worked for a large retailer on their iPhone app and our test environments were terribly slow so we tended to do most of our development against production. T
by RandallBrown 2y ago
I worked for a large retailer on their iPhone app and our test environments were terribly slow so we tended to do most of our development against production.
This retailer is pretty old and had issued their own credit cards that didn't have any sort of checksum validation. This made making test orders easy because any sequence of numbers for that credit card type would let the "checkout" call succeed, and then the order wouldn't actually be fulfilled because the card would turn out to be invalid.
We usually used a sequential list of numbers because that was so fast to type and we used a made up Address in Tok Alaska. The state picker had Alaska first and Tok (also Eek) were the shortest city names we could find in Alaska.
One day someone took a look at one of our test account's order histories and noticed that there was a tracking link for the order. That "fake" credit card number turned out to be quite real. We shipped a dress to Alaska, which was then returned to sender because the address (1 A St) didn't exist.
We were much more careful after that but as far as I know, nobody ever complained and we never heard about it from anyone outside our team.
- aristus 2y agoThey literally didn't have a Lunh check digit? Like, 1960s math? My gobs are smacked.
- RandallBrown 2y agoThe theory was that the numbers were issued sequentially and they only kept them around because there was some "prestige" around having a low number. Not sure if that's true, but they did end up changing to a regular Visa card not long after. These cards only worked at that retailer and were originally issued long before the Internet.
- marklar423 2y agoI 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.
- em-bee 2y agoOne day, we got a big box of makeup at the office now that's a true end-to-end test.
- Frederation 2y agoOh my, thats funny. ?id=48391&test=lol
- cmpxchg8b 2y agoLiterally a real-world race condition in the end to end tests.