Commit 87e91f69 authored by tavit ohanian's avatar tavit ohanian

initial port - tests fail for using insecure transports

parent 9d0361a1
Pipeline #734 failed with stages
in 1 minute and 36 seconds
stages:
- build
- test
variables:
BUILD_DIR: "/tmp/$CI_CONCURRENT_PROJECT_ID"
before_script:
- mkdir -p $BUILD_DIR/src
- cd $BUILD_DIR/src
- if [ -d $CI_PROJECT_DIR ]
- then
- echo "soft link $CI_PROJECT_DIR exists"
- else
- echo "creating soft link $CI_PROJECT_DIR"
- ln -s $CI_PROJECT_DIR
- fi
- cd $CI_PROJECT_DIR
build:
stage: build
tags:
- testing
script:
- echo $CI_JOB_STAGE
- go build
test:
stage: test
tags:
- testing
script:
- echo $CI_JOB_STAGE
- go test -cover
coverage: '/coverage: \d+.\d+% of statements/'
This diff is collapsed.
......@@ -4,7 +4,7 @@ import (
"os"
"strings"
"github.com/libp2p/go-reuseport"
"gitlab.dms3.io/p2p/go-reuseport"
)
// envReuseport is the env variable name used to turn off reuse port.
......
......@@ -6,11 +6,11 @@ import (
"runtime"
"time"
logging "github.com/ipfs/go-log"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/transport"
tptu "github.com/libp2p/go-libp2p-transport-upgrader"
rtpt "github.com/libp2p/go-reuseport-transport"
logging "gitlab.dms3.io/dms3/public/go-log"
"gitlab.dms3.io/p2p/go-p2p-core/peer"
"gitlab.dms3.io/p2p/go-p2p-core/transport"
tptu "gitlab.dms3.io/p2p/go-p2p-transport-upgrader"
rtpt "gitlab.dms3.io/p2p/go-reuseport-transport"
ma "github.com/multiformats/go-multiaddr"
mafmt "github.com/multiformats/go-multiaddr-fmt"
......
package tcp
import (
"github.com/libp2p/go-libp2p-core/crypto"
"github.com/libp2p/go-libp2p-core/peer"
"testing"
"github.com/libp2p/go-libp2p-core/sec/insecure"
mplex "github.com/libp2p/go-libp2p-mplex"
tptu "github.com/libp2p/go-libp2p-transport-upgrader"
"gitlab.dms3.io/p2p/go-p2p-core/crypto"
"gitlab.dms3.io/p2p/go-p2p-core/peer"
ttransport "github.com/libp2p/go-libp2p-testing/suites/transport"
"gitlab.dms3.io/p2p/go-p2p-core/sec/insecure"
mplex "gitlab.dms3.io/p2p/go-p2p-mplex"
tptu "gitlab.dms3.io/p2p/go-p2p-transport-upgrader"
ttransport "gitlab.dms3.io/p2p/go-p2p-testing/suites/transport"
ma "github.com/multiformats/go-multiaddr"
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment