mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
skip test requires root permission
This commit is contained in:
parent
9876844296
commit
41d89e6d1e
@ -3,8 +3,6 @@ language: go
|
||||
go:
|
||||
- 1.7
|
||||
|
||||
sudo: required
|
||||
|
||||
git:
|
||||
depth: 5
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
package udp_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
"testing"
|
||||
|
||||
@ -16,6 +17,10 @@ import (
|
||||
|
||||
func TestHubSocksOption(t *testing.T) {
|
||||
assert := assert.On(t)
|
||||
if os.Geteuid() != 0 {
|
||||
// This test case requires root permission.
|
||||
return
|
||||
}
|
||||
|
||||
hub, err := ListenUDP(v2net.LocalHostIP, v2net.Port(0), ListenOption{
|
||||
Callback: func(*alloc.Buffer, *proxy.SessionInfo) {},
|
||||
|
Loading…
Reference in New Issue
Block a user