0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-13 03:49:35 +03:00

Fix some tests and format code (#830)

* Increase some tls test timeout

* Fix TestUserValidator

* Change all tests to VMessAEAD

Old VMess MD5 tests will be rejected and fail in 2022

* Chore: auto format code
This commit is contained in:
yuhan6665
2021-12-14 19:28:47 -05:00
committed by GitHub
parent d5a7901601
commit e93da4bd02
77 changed files with 137 additions and 234 deletions

View File

@ -28,8 +28,7 @@ func TestRequestSerialization(t *testing.T) {
}
id := uuid.New()
account := &vmess.Account{
Id: id.String(),
AlterId: 0,
Id: id.String(),
}
user.Account = toAccount(account)
@ -78,8 +77,7 @@ func TestInvalidRequest(t *testing.T) {
}
id := uuid.New()
account := &vmess.Account{
Id: id.String(),
AlterId: 0,
Id: id.String(),
}
user.Account = toAccount(account)
@ -120,8 +118,7 @@ func TestMuxRequest(t *testing.T) {
}
id := uuid.New()
account := &vmess.Account{
Id: id.String(),
AlterId: 0,
Id: id.String(),
}
user.Account = toAccount(account)