Package list golang-github-go-kit-kit / 36b0fc0
circuitbreaker: temp fix for new hystrix behavior Peter Bourgon 6 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
55 "path/filepath"
66 "runtime"
77 "testing"
8 "time"
89
910 "golang.org/x/net/context"
1011
4041 }
4142 thru := m.thru
4243
44 // https://github.com/afex/hystrix-go/issues/41
45 time.Sleep(time.Millisecond)
46
4347 // But the rest should be blocked by an open circuit.
4448 for i := 0; i < 10; i++ {
4549 if _, err := e(context.Background(), struct{}{}); err.Error() != openCircuitError {