Skip to content

Instantly share code, notes, and snippets.

@sunho
Created January 13, 2018 23:12
Show Gist options
  • Save sunho/056432ef1c89111169e3f34cdc62e94c to your computer and use it in GitHub Desktop.
Save sunho/056432ef1c89111169e3f34cdc62e94c to your computer and use it in GitHub Desktop.
defer func() {
if r := recover(); r != nil {
t.reportErrorAndStop()
}
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment