mirror of https://github.com/cbeuw/Cloak
Reduce unnecessary test bloat
This commit is contained in:
parent
c60c6d8ddb
commit
fd695db044
|
|
@ -36,11 +36,8 @@ func TestRecvDataFromRemote(t *testing.T) {
|
|||
for seshType, seshConfig := range seshConfigs {
|
||||
seshConfig := seshConfig
|
||||
t.Run(seshType, func(t *testing.T) {
|
||||
for methodName, method := range encryptionMethods {
|
||||
method := method
|
||||
t.Run(methodName, func(t *testing.T) {
|
||||
var err error
|
||||
seshConfig.Obfuscator, err = MakeObfuscator(method, sessionKey)
|
||||
seshConfig.Obfuscator, err = MakeObfuscator(EncryptionMethodPlain, sessionKey)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to make obfuscator: %v", err)
|
||||
}
|
||||
|
|
@ -203,8 +200,7 @@ func TestRecvDataFromRemote(t *testing.T) {
|
|||
assert.EqualValues(t, seq2, resultPayload)
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue