I tried signal.Notify but it seems it doesn't work. Then I find this: https://github.com/golang/go/issues/15553#issuecomment-217162874
So what should I do to make my function always run at exit in test? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
