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

Added more tests for config validation #965

Merged
merged 2 commits into from
Oct 6, 2017
Merged

Added more tests for config validation #965

merged 2 commits into from
Oct 6, 2017

Conversation

agnivade
Copy link
Contributor

@agnivade agnivade commented Oct 6, 2017

No description provided.

@agnivade
Copy link
Contributor Author

agnivade commented Oct 6, 2017

@eapache -

Error while executing topic command : replication factor: 3 larger than available brokers: 2
[2017-10-06 10:11:17,820] ERROR org.apache.kafka.common.errors.InvalidReplicationFactorException: replication factor: 3 larger than available brokers: 2

Does not look like related to my change.

config_test.go Outdated
func TestNetConfigValidates(t *testing.T) {
tests := []struct {
name string
cfg func() *Config // resorting to using a function as a param because of internal composite structs
Copy link
Contributor

Choose a reason for hiding this comment

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

change the method sig to func(*Config) and have the loop create the new config each time; will reduce the size of all the function bodies

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Updated.

@eapache
Copy link
Contributor

eapache commented Oct 6, 2017

Sometimes that CI error happens if the kafka cluster does not boot properly, I can trigger a re-run if it happens again.

Passing the cfg pointer in the function and creating the initial
config from the main test loop
@eapache
Copy link
Contributor

eapache commented Oct 6, 2017

Thanks!

@eapache eapache merged commit 70f6a70 into IBM:master Oct 6, 2017
@agnivade agnivade deleted the test branch October 6, 2017 19:04
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.

2 participants