Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdv2429 committed Mar 25, 2024
1 parent f767190 commit 6ce440b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions conv/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func TestGetNodeConfig(t *testing.T) {

validCosmos := "127.0.0.1:1234"
validDymint := "/ip4/127.0.0.1/tcp/1234"
validSeed := "https://[email protected]:20556"

cases := []struct {
name string
Expand All @@ -23,8 +22,7 @@ func TestGetNodeConfig(t *testing.T) {
expectError bool
}{
{"empty", nil, config.NodeConfig{}, true},
// TODO: get a valid seed and replace its value
{"Seeds", &tmcfg.Config{P2P: &tmcfg.P2PConfig{Seeds: validSeed}}, config.NodeConfig{P2P: config.P2PConfig{Seeds: validSeed}}, true},
{"Seeds", &tmcfg.Config{P2P: &tmcfg.P2PConfig{Seeds: validCosmos + "," + validCosmos}}, config.NodeConfig{P2P: config.P2PConfig{Seeds: validDymint + "," + validDymint}}, false},
//GetNodeConfig translates the listen address, so we expect the translated address
{"ListenAddress", &tmcfg.Config{P2P: &tmcfg.P2PConfig{ListenAddress: validCosmos}}, config.NodeConfig{P2P: config.P2PConfig{ListenAddress: validDymint}}, false},
{"RootDir", &tmcfg.Config{BaseConfig: tmcfg.BaseConfig{RootDir: "~/root"}}, config.NodeConfig{RootDir: "~/root"}, false},
Expand Down

0 comments on commit 6ce440b

Please sign in to comment.