Require no-error in config tests [#9]

This commit is contained in:
Erin Call 2019-12-23 15:52:01 -08:00
parent e2f53f3b08
commit db87bd0507
No known key found for this signature in database
GPG key ID: 4071FF6C15B8DAD1

View file

@ -27,7 +27,7 @@ func (suite *ConfigTestSuite) TestPopulateWithPluginPrefix() {
suite.setenv("PLUGIN_DEBUG", "true")
cfg := Config{}
cfg.Populate()
suite.Require().NoError(cfg.Populate())
suite.Equal("execute order 66", cfg.Command)
suite.True(cfg.UpdateDependencies)
@ -44,7 +44,7 @@ func (suite *ConfigTestSuite) TestPopulateWithNoPrefix() {
suite.setenv("DEBUG", "true")
cfg := Config{}
cfg.Populate()
suite.Require().NoError(cfg.Populate())
suite.Equal("execute order 66", cfg.Command)
suite.True(cfg.UpdateDependencies)
@ -56,7 +56,7 @@ func (suite *ConfigTestSuite) TestPopulateWithConflictingVariables() {
suite.setenv("HELM_COMMAND", "defend the jedi")
cfg := Config{}
cfg.Populate()
suite.Require().NoError(cfg.Populate())
suite.Equal("defend the jedi", cfg.Command)
}