Merge pull request #2512 from JackDanger/jackdanger/flaky-test-fix---random-bytes-can-look-like-base64
Flaky test fix: random bytes can look like base64
This commit is contained in:
commit
577f81a18b
@ -973,10 +973,6 @@ def test_generate_random(number_of_bytes):
|
||||
|
||||
response = client.generate_random(NumberOfBytes=number_of_bytes)
|
||||
|
||||
# Plaintext must NOT be base64-encoded
|
||||
with assert_raises(Exception):
|
||||
base64.b64decode(response["Plaintext"], validate=True)
|
||||
|
||||
response["Plaintext"].should.be.a(bytes)
|
||||
len(response["Plaintext"]).should.equal(number_of_bytes)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user