parent
b46bdaff40
commit
4a97f541cd
@ -1,16 +1,18 @@ |
||||
package identitychain |
||||
|
||||
import ( |
||||
"fmt" |
||||
"os" |
||||
"testing" |
||||
|
||||
"github.com/simple-rules/harmony-benchmark/p2p" |
||||
) |
||||
|
||||
func TestConnAlive(test *testing.T) { |
||||
// peer := p2p.Peer{Ip: "127.0.0.1", Port: "8080"}
|
||||
// IDC := New(peer)
|
||||
// IDC.listenOnPort()
|
||||
// // conn, err := net.Dial("tcp", IDC.Peer.Ip+":"+IDC.Peer.Port)
|
||||
// // if err != nil {
|
||||
// // test.Fatal(err)
|
||||
// // }
|
||||
// // defer conn.Close()
|
||||
func TestIDCFormed(test *testing.T) { |
||||
peer := p2p.Peer{Ip: "127.0.0.1", Port: "8080"} |
||||
IDC := New(peer) |
||||
if IDC == nil { |
||||
fmt.Println("IDC not formed.") |
||||
os.Exit(1) |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue