Testing in Go: Building Confidence Through Code
摘要
Several years ago, I was working on an enterprise project. It had millions of users and thousands of concurrent online users. One day, we had to release a new feature quickly; this system did not have any tests. After deployment, we started seeing serious issues. One bug in the new code caused the entire system to crash. In production, with thousands of users online, we had no choice but to restart the system every few minutes just to keep it running.