Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Nov 11, 2022
1 parent 2048268 commit e0f10cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions local/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1142,8 +1142,10 @@ func TestWriteFiles(t *testing.T) {
configFilePath := filepath.Join(tmpDir, configFileName)
configFileFlag := fmt.Sprintf("--%s=%v", config.ConfigFileKey, configFilePath)
chainConfigDir := filepath.Join(tmpDir, chainConfigSubDir)
subnetConfigDir := filepath.Join(tmpDir, subnetConfigSubDir)
cChainConfigPath := filepath.Join(tmpDir, chainConfigSubDir, "C", configFileName)
chainConfigDirFlag := fmt.Sprintf("--%s=%v", config.ChainConfigDirKey, chainConfigDir)
subnetConfigDirFlag := fmt.Sprintf("--%s=%v", config.SubnetConfigDirKey, subnetConfigDir)

type test struct {
name string
Expand All @@ -1166,6 +1168,8 @@ func TestWriteFiles(t *testing.T) {
stakingKeyFlag,
stakingCertFlag,
genesisFlag,
chainConfigDirFlag,
subnetConfigDirFlag,
},
},
{
Expand All @@ -1182,6 +1186,8 @@ func TestWriteFiles(t *testing.T) {
stakingCertFlag,
genesisFlag,
configFileFlag,
chainConfigDirFlag,
subnetConfigDirFlag,
},
},
{
Expand All @@ -1200,6 +1206,7 @@ func TestWriteFiles(t *testing.T) {
genesisFlag,
configFileFlag,
chainConfigDirFlag,
subnetConfigDirFlag,
},
},
}
Expand Down

0 comments on commit e0f10cc

Please sign in to comment.