eb347efaffd7f69a114d61afba8f1b4a419b14ce
[go-signalcontext.git] / error_test.go
1 package signalcontext
2
3 import (
4 "os"
5 "testing"
6
7 "github.com/stretchr/testify/assert"
8 )
9
10 func TestError(t *testing.T) {
11 assert.EqualError(t, Error{os.Interrupt},
12 "received signal: "+os.Interrupt.String())
13 }