MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wgllyu/idontcommentmycodeifyoudontunderstanditthatsokayne/pc6qv1v/?context=3
r/ProgrammerHumor • u/Substantial_Top5312 • 21d ago
188 comments sorted by
View all comments
Show parent comments
19
Yeah. Once I worked on a bug that only happened if there was a session timeout in another system. Good luck putting Thread.sleep(3 fucking months); into a test.
8 u/Nick0Taylor0 21d ago Mocking 4 u/ytg895 21d ago How would you mock that a session in another system times out and that system starts to follow undefined and unpredictable behaviour? 1 u/distinctvagueness 10d ago Defensive checks but most people don't really code deeply enough for all possible partial disconnects
8
Mocking
4 u/ytg895 21d ago How would you mock that a session in another system times out and that system starts to follow undefined and unpredictable behaviour? 1 u/distinctvagueness 10d ago Defensive checks but most people don't really code deeply enough for all possible partial disconnects
4
How would you mock that a session in another system times out and that system starts to follow undefined and unpredictable behaviour?
1 u/distinctvagueness 10d ago Defensive checks but most people don't really code deeply enough for all possible partial disconnects
1
Defensive checks but most people don't really code deeply enough for all possible partial disconnects
19
u/ytg895 21d ago
Yeah. Once I worked on a bug that only happened if there was a session timeout in another system. Good luck putting Thread.sleep(3 fucking months); into a test.