Reduce unnecessary test bloat

This commit is contained in:
Andy Wang 2020-12-28 01:27:40 +00:00
parent c60c6d8ddb
commit fd695db044
No known key found for this signature in database
GPG Key ID: 181B49F9F38F3374
1 changed files with 154 additions and 158 deletions

View File

@ -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)
})
}
})
}
})
}
}