mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00: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:
parent
d5a7901601
commit
e93da4bd02
77 changed files with 137 additions and 234 deletions
|
@ -181,8 +181,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
|
|||
User: []*protocol.User{
|
||||
{
|
||||
Account: serial.ToTypedMessage(&vmess.Account{
|
||||
Id: u1.String(),
|
||||
AlterId: 64,
|
||||
Id: u1.String(),
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
@ -248,8 +247,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
|
|||
User: []*protocol.User{
|
||||
{
|
||||
Account: serial.ToTypedMessage(&vmess.Account{
|
||||
Id: u2.String(),
|
||||
AlterId: 64,
|
||||
Id: u2.String(),
|
||||
SecuritySettings: &protocol.SecurityConfig{
|
||||
Type: protocol.SecurityType_AES128_GCM,
|
||||
},
|
||||
|
@ -285,8 +283,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
|
|||
User: &protocol.User{
|
||||
Email: "test@example.com",
|
||||
Account: serial.ToTypedMessage(&vmess.Account{
|
||||
Id: u2.String(),
|
||||
AlterId: 64,
|
||||
Id: u2.String(),
|
||||
}),
|
||||
},
|
||||
}),
|
||||
|
@ -376,8 +373,7 @@ func TestCommanderStats(t *testing.T) {
|
|||
Level: 1,
|
||||
Email: "test",
|
||||
Account: serial.ToTypedMessage(&vmess.Account{
|
||||
Id: userID.String(),
|
||||
AlterId: 64,
|
||||
Id: userID.String(),
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
@ -432,8 +428,7 @@ func TestCommanderStats(t *testing.T) {
|
|||
User: []*protocol.User{
|
||||
{
|
||||
Account: serial.ToTypedMessage(&vmess.Account{
|
||||
Id: userID.String(),
|
||||
AlterId: 64,
|
||||
Id: userID.String(),
|
||||
SecuritySettings: &protocol.SecurityConfig{
|
||||
Type: protocol.SecurityType_AES128_GCM,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue