Skip to content

Commit

Permalink
fixup! test(cosmos): check all known options and flags
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
  • Loading branch information
mhofman and gibson042 committed May 31, 2024
1 parent c26cb47 commit 4c6c083
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions golang/cosmos/daemon/cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,7 @@ func TestCLIFlags(t *testing.T) {
// appTemplate, appConfig := initAppConfig()
appTemplate := serverconfig.DefaultConfigTemplate
appConfig := serverconfig.DefaultConfig()
tmpl := template.New("appConfigFileTemplate")
var configTemplate *template.Template
if configTemplate, err = tmpl.Parse(appTemplate); err != nil {
panic(err)
}
configTemplate := template.Must(template.New("").Parse(appTemplate))
var buffer bytes.Buffer
if err := configTemplate.Execute(&buffer, appConfig); err != nil {
panic(err)
Expand Down

0 comments on commit 4c6c083

Please sign in to comment.