signals_test.go 232 B

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