1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00

enable sockopt tests

This commit is contained in:
Darien Raymond 2018-09-17 15:55:00 +02:00
parent 383b84e7dd
commit 2f28d380b3
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
3 changed files with 2 additions and 2 deletions

View File

@ -9,6 +9,7 @@ before_script:
- uname -a
- sudo ntpdate -u time.google.com
- date
- sudo setcap cap_net_admin=eip ${GOROOT}/bin/go
script:
- go test -p 1 -tags json -v v2ray.com/core/...
after_success:

View File

@ -15,6 +15,7 @@ build:
- tar -C /usr/local -xzf golang.tar.gz
- export PATH=$PATH:/usr/local/go/bin
- export GOPATH=/v2ray
- sudo setcap cap_net_admin=eip /usr/loca/go/bin/go
- go get v2ray.com/core/...
- go get v2ray.com/ext/...
- go test -p 1 -v v2ray.com/core/...

View File

@ -12,8 +12,6 @@ import (
)
func TestSockOptMark(t *testing.T) {
t.Skip("requires CAP_NET_ADMIN")
tcpServer := tcp.Server{
MsgProcessor: func(b []byte) []byte {
return b