signals_test.go 204 B

12345678910111213141516
  1. package proc
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. )
  6. func TestDone(t *testing.T) {
  7. select {
  8. case <-Done():
  9. assert.Fail(t, "should run")
  10. default:
  11. }
  12. assert.NotNil(t, Done())
  13. }