We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252c901 commit 38204e0Copy full SHA for 38204e0
src/testing/synctest/synctest.go
@@ -7,6 +7,14 @@
7
// The [Test] function runs a function in an isolated "bubble".
8
// Any goroutines started within the bubble are also part of the bubble.
9
//
10
+// Each test should be entirely self-contained:
11
+// The following guidelines should apply to most tests:
12
+//
13
+// - Avoid interacting with goroutines not started from within the test.
14
+// - Avoid using the network. Use a fake network implementation as needed.
15
+// - Avoid interacting with external processes.
16
+// - Avoid leaking goroutines in background tasks.
17
18
// # Time
19
20
// Within a bubble, the [time] package uses a fake clock.
0 commit comments