Fix travis test?

This commit is contained in:
Asim Aslam 2019-08-07 22:02:58 +01:00
parent a894b4f354
commit a3b962f37b

View File

@ -54,7 +54,7 @@ func testSend(t *testing.T, tun Tunnel) {
func TestTunnel(t *testing.T) { func TestTunnel(t *testing.T) {
// create a new listener // create a new listener
tun := NewTunnel(Nodes(":9096")) tun := NewTunnel(Nodes("127.0.0.1:9096"))
err := tun.Connect() err := tun.Connect()
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
@ -77,13 +77,13 @@ func TestTunnel(t *testing.T) {
func TestTwoTunnel(t *testing.T) { func TestTwoTunnel(t *testing.T) {
// create a new tunnel client // create a new tunnel client
tunA := NewTunnel( tunA := NewTunnel(
Address(":9096"), Address("127.0.0.1:9096"),
Nodes(":9097"), Nodes("127.0.0.1:9097"),
) )
// create a new tunnel server // create a new tunnel server
tunB := NewTunnel( tunB := NewTunnel(
Address(":9097"), Address("127.0.0.1:9097"),
) )
// start tunB // start tunB