Skip to content

Commit

Permalink
fix: go coverage dir
Browse files Browse the repository at this point in the history
The node `HomeDir()` is `/var/cosmos-chain/[CHAIN_NAME]` and not
`/var/cosmos-chain/[CHAIN_ID]`
  • Loading branch information
fmorency committed Jul 5, 2024
1 parent 922269e commit 7061d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (c ChainConfig) MergeChainSpecConfig(other ChainConfig) ChainConfig {

// WithCodeCoverage enables Go Code Coverage from the chain node directory.
func (c *ChainConfig) WithCodeCoverage(override ...string) {
c.Env = append(c.Env, fmt.Sprintf("GOCOVERDIR=%s", path.Join("/var/cosmos-chain", c.ChainID)))
c.Env = append(c.Env, fmt.Sprintf("GOCOVERDIR=%s", path.Join("/var/cosmos-chain", c.Name)))
if len(override) > 0 {
c.Env = append(c.Env, override[0])
}
Expand Down

0 comments on commit 7061d82

Please sign in to comment.