Remove finicky encryption test

AES-CFB is unauthenticated, in rare circumstances it won't error on
AES-GCM encrypted payloads
This commit is contained in:
Nick Meves 2021-07-01 19:03:01 -07:00
parent 7a83d18f23
commit 1faa5c47ce

View File

@ -264,22 +264,6 @@ func TestEncodeAndDecodeSessionState(t *testing.T) {
}
})
}
t.Run("Mixed cipher types cause errors", func(t *testing.T) {
for testName, ss := range testCases {
t.Run(testName, func(t *testing.T) {
cfbEncoded, err := ss.EncodeSessionState(cfb, false)
assert.NoError(t, err)
_, err = DecodeSessionState(cfbEncoded, gcm, false)
assert.Error(t, err)
gcmEncoded, err := ss.EncodeSessionState(gcm, false)
assert.NoError(t, err)
_, err = DecodeSessionState(gcmEncoded, cfb, false)
assert.Error(t, err)
})
}
})
})
}
}