package relay import ( "os" "testing" "git.smesh.lol/torly/pkg/sigtrap" ) // TestMain installs the signal dispositions a normal program gets and a test // binary does not. These tests write to sockets that the relay closes, and under // TinyGo an EPIPE on those writes is a fatal signal: without this the test // process dies silently part way through a shutdown test. func TestMain(m *testing.M) { sigtrap.IgnorePipe() os.Exit(m.Run()) }