Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AfterFunc configuration option to hystrix.ConfigureCloser #111

Merged
merged 3 commits into from
Mar 7, 2022

Conversation

chrisguiney
Copy link
Contributor

resolves #104

@cep21
Copy link
Owner

cep21 commented Mar 7, 2022

Sorry for the delay. Looks like a test failure because the configuration cannot be json encoded. I think you'll want to mark it as json:"-"

@@ -36,6 +36,9 @@ var _ circuit.OpenToClosed = &Closer{}

// ConfigureCloser configures values for Closer
type ConfigureCloser struct {
// AfterFunc should simulate time.AfterFunc
AfterFunc func(time.Duration, func()) *time.Timer
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AfterFunc func(time.Duration, func()) *time.Timer
AfterFunc func(time.Duration, func()) *time.Timer `json:"-"`

Signed-off-by: Chris Guiney <chrisg@tune.com>
@cep21 cep21 merged commit 2762902 into cep21:master Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to mock the clock for Closer.reopenCircuitCheck
3 participants