github.com/lingyao2333/mo-zero@v1.4.1/core/proc/signals_test.go (about) 1 package proc 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestDone(t *testing.T) { 10 select { 11 case <-Done(): 12 assert.Fail(t, "should run") 13 default: 14 } 15 assert.NotNil(t, Done()) 16 }