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

Fix maestro tests #91

Conversation

victor-carvalho
Copy link
Contributor

@victor-carvalho victor-carvalho commented Jun 19, 2020

@victor-carvalho victor-carvalho changed the base branch from master to refactor/rolling-update-progress June 22, 2020 13:38
},
}, gomock.Any())
}, gomock.Any()).AnyTimes()
Copy link
Contributor

Choose a reason for hiding this comment

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

It is not ideal to use AnyTimes. If possible assert that HGet is called the exact number of times it should

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's not needed here. It's only called one time

@@ -1361,23 +1367,25 @@ cmd:
})

Describe("ScaleUp", func() {
BeforeEach(func() {
config.Set("watcher.maxScaleUpAmount", 100)
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we need to unset this value after?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I will change this. I thought config was being reset every test but it was because I was running only one test separately.

Copy link
Contributor

@gabrielcorado gabrielcorado left a comment

Choose a reason for hiding this comment

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

LGTM. Can we remove the commented code? Like here.

@victor-carvalho victor-carvalho merged commit e23001f into refactor/rolling-update-progress Jun 22, 2020
@victor-carvalho victor-carvalho deleted the fix/rolling-update-progress-fix-tests branch June 22, 2020 21:02
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.

None yet

3 participants