github.com/tri-stone/burrow@v0.25.0/consensus/tendermint/config_test.go (about) 1 package tendermint 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestDefaultBurrowTendermintConfig(t *testing.T) { 10 btc := DefaultBurrowTendermintConfig() 11 btc.AuthorizedPeers = "127.0.0.1:26656,836AB8674A33416718E5A19557A25ED826B2BDD3" 12 authorizedPeersID, authorizedPeersAddress := btc.DefaultAuthorizedPeersProvider()() 13 assert.Equal(t, []string{"127.0.0.1:26656"}, authorizedPeersAddress) 14 assert.Equal(t, []string{"836AB8674A33416718E5A19557A25ED826B2BDD3"}, authorizedPeersID) 15 }