Go Retry Test
go get -u github.com/cateiru/go-retry
Example
import (
"testing"
"github.com/cateiru/go-retry"
)
func TestExample(t *testing.T) {
Retry(t, func() bool {
result := Example()
if result == "ok" {
return true
}
return false
}, "Status message")
}