mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-03-11 09:13:52 +00:00
Simplify vmess test
This commit is contained in:
parent
2c6d239525
commit
df6635c620
1 changed files with 15 additions and 0 deletions
|
@ -14,6 +14,21 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestVMess(t *testing.T) {
|
func TestVMess(t *testing.T) {
|
||||||
|
security := "auto"
|
||||||
|
user, err := uuid.DefaultGenerator.NewV4()
|
||||||
|
require.NoError(t, err)
|
||||||
|
t.Run("self", func(t *testing.T) {
|
||||||
|
testVMessSelf(t, security, user, 0, false, false)
|
||||||
|
})
|
||||||
|
t.Run("inbound", func(t *testing.T) {
|
||||||
|
testVMessInboundWithV2Ray(t, security, user, 0, false)
|
||||||
|
})
|
||||||
|
t.Run("outbound", func(t *testing.T) {
|
||||||
|
testVMessOutboundWithV2Ray(t, security, user, false, false, 0)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func _TestVMess(t *testing.T) {
|
||||||
for _, security := range []string{
|
for _, security := range []string{
|
||||||
"zero",
|
"zero",
|
||||||
} {
|
} {
|
||||||
|
|
Loading…
Add table
Reference in a new issue