mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-17 17:11:19 +00:00
17 lines
222 B
Go
17 lines
222 B
Go
|
package peer
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestLocalConnection(t *testing.T) {
|
||
|
|
||
|
c1 := NewClient("tcp", ":8080")
|
||
|
c2 := NewClient("tcp", ":8081")
|
||
|
|
||
|
c1.ConnectTo(c2.LocalAddress())
|
||
|
|
||
|
c1.Stop()
|
||
|
c2.Stop()
|
||
|
}
|