Skip to content

Commit

Permalink
Fix Current Integration Tests (cosmos#6570)
Browse files Browse the repository at this point in the history
* fix attempt

* fix test
  • Loading branch information
alexanderbez authored Jul 1, 2020
1 parent 2658175 commit 37cc040
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 362 deletions.
5 changes: 5 additions & 0 deletions client/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ func ValidateCmd(cmd *cobra.Command, args []string) error {
// flags that do not necessarily change with context. These must be checked if
// the caller explicitly changed the values.
func ReadPersistentCommandFlags(clientCtx Context, flagSet *pflag.FlagSet) (Context, error) {
if flagSet.Changed(flags.FlagHome) {
homeDir, _ := flagSet.GetString(flags.FlagHome)
clientCtx = clientCtx.WithHomeDir(homeDir)
}

if flagSet.Changed(flags.FlagChainID) {
chainID, _ := flagSet.GetString(flags.FlagChainID)
clientCtx = clientCtx.WithChainID(chainID)
Expand Down
191 changes: 0 additions & 191 deletions client/config.go

This file was deleted.

71 changes: 0 additions & 71 deletions client/config_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/hashicorp/golang-lru v0.5.4
github.com/mattn/go-isatty v0.0.12
github.com/otiai10/copy v1.2.0
github.com/pelletier/go-toml v1.8.0
github.com/pelletier/go-toml v1.8.0 // indirect
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.7.1
github.com/prometheus/common v0.10.0
Expand Down
Loading

0 comments on commit 37cc040

Please sign in to comment.