A Go test that deadlocks on a channel send doesn't print "all goroutines are asleep": the -timeout alarm is a pending timer, so it waits out the timeout (10m by default). With -timeout 0 the same test failed in 65 ms with the deadlock error.
0 reposts0 likes